Guide: SFS2X + Hibernate + JPA

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Guide: SFS2X + Hibernate + JPA

Postby Lapo » 14 Feb 2011, 08:29

Thanks to KlingOne for his Hibernate + JPA tutorial:
http://klingonenblog.wordpress.com/2011 ... rnate-jpa/
Lapo
--
gotoAndPlay()
...addicted to flash games
bachhoan88
Posts: 5
Joined: 28 Jan 2013, 08:31

Re: Guide: SFS2X + Hibernate + JPA

Postby bachhoan88 » 28 Jan 2013, 09:26

Thank so much!
But not done when build on smartfoxserver 2x
when build have a issue

Unable to configure EntityManagerFactory in call

Code: Select all

static final EntityManagerFactory factory = Persistence.createEntityManagerFactory("examplePersistenceUnit")


if any body build + run successfull please post step by step
Thanks
ferakiii
Posts: 20
Joined: 06 Oct 2013, 23:47

Re: Guide: SFS2X + Hibernate + JPA

Postby ferakiii » 14 Oct 2013, 23:22

I'm also having an issue, see this post:
viewtopic.php?f=18&t=13673

Seems one of the python classes has some bad "magic number" whatever that means, and crashes the Hibernate EntityManager.

If anyone has a running configuration, would be great to know.
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Guide: SFS2X + Hibernate + JPA

Postby hoangdoanh » 21 Mar 2014, 07:40

Thanks for guides

I intent to integrate SmartFoxServer and Hibernate in near future.

Kind regards,
Doanh
User avatar
YoungDeveloper
Posts: 48
Joined: 02 Mar 2014, 21:38
Location: Latvia

Re: Guide: SFS2X + Hibernate + JPA

Postby YoungDeveloper » 04 Apr 2023, 15:47

Ive tried the guide multiple times and still no success, maybe anyone have a ready minimal sample ?

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 39 guests