-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: EntityManager on J2SE standalone application.What'sthe point
PostPosted: Mon Jun 11, 2007 1:45 pm 
Newbie

Joined: Mon Jun 11, 2007 1:34 pm
Posts: 11
I was just wondering what's the point of using Hibernate EntityManager on a common J2SE standalone application. I mean, what's the diference in using Hibernate core whit Session and Transaction?
I just finished configuring it and it's very similar to Hibernate core...Session.save()=EntityManager.persist()...etc
My question is, and i think it's a very stupid one (i'm sorry), why would i want to use EntityManager instead of hibernate core?

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 11, 2007 7:34 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
the fact that it is standard. Otherwise there is not much difference.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 11, 2007 7:36 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
actually the entity auto discovery is a difference.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 11:35 am 
Newbie

Joined: Mon Jun 11, 2007 1:34 pm
Posts: 11
Yes, that is a difference. I don't need to list all the entities in the hibernate.cfg.xml.

Thanks you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.