-->
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.  [ 2 posts ] 
Author Message
 Post subject: difference b/w hibernate.cfg.xml file and hibernate.property
PostPosted: Sat Aug 06, 2005 3:17 pm 
Beginner
Beginner

Joined: Tue Jun 21, 2005 2:21 am
Posts: 22
hi
i need to know the difference between hibernate.cfg.xml file and hibernate.properties file in terms of datasource .
i had all my datasource information in hibernate.cfg.xml files with the help of property tag . but i got some exception (if i remember corrtly initialization exception ) like this . then i included the datasource info in my hibernate.properties file .currently datasource details are replicated in two files in my application . i need to now what things need to go under these files

whats the difference between the two ?
is that related to managed and non managed environment ?

thanks
Balaji


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 3:18 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is no functional difference, except that you can define mapping resource locations and cache region settings in an XML format. AFAIR this is also exactly the statement in the reference documentation.


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