-->
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.  [ 3 posts ] 
Author Message
 Post subject: persistence.xml - hibernate.properties - hibernate.cfg.xml?
PostPosted: Thu Mar 22, 2007 5:48 am 
Newbie

Joined: Thu Jan 05, 2006 6:03 am
Posts: 9
Hi,

i have problems understanding where to put my
persistence configuration using the helloWorld example.

I think those files are involved (others missing?)

- META-INF/helloworld-beans.xml
- META-INF/persistence.xml
- hibernate.properties
- hibernate.cfg.xml

How are they related?
In which sequence are they analyzed?
Where should i put cache settings or c3p0 settings?
Which can i leave away to simplify everything?
How can i see in the logs which configuration was used?

thanks
Marcel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 10:59 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
If you use Hibernate EntityManager, do not use

- hibernate.properties
- hibernate.cfg.xml

all properties should be set up in META-INF/persistence.xml

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 12:34 pm 
Newbie

Joined: Thu Jan 05, 2006 6:03 am
Posts: 9
Cool, this was a simple solution,

Marcel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.