It's not a secret anymore!*
The moose likes Object Relational Mapping and the fly likes Can i mix hibernate configuration data in properties and hibernate.cfg.xml files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Can i mix hibernate configuration data in properties and hibernate.cfg.xml files" Watch "Can i mix hibernate configuration data in properties and hibernate.cfg.xml files" New topic
Author

Can i mix hibernate configuration data in properties and hibernate.cfg.xml files

ken carlino
Greenhorn

Joined: Nov 06, 2006
Posts: 10
Hi,

Can I mix hibernate configuration data in properties and cfg.xml files?
i.e. part of it is in properties and part of it is in cfg.xml files?

Here is my code:


But I get this exception, when i run it:



I did set the database dialect in my hibernate.cfg.xml file:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can i mix hibernate configuration data in properties and hibernate.cfg.xml files
 
Similar Threads
NullPointerException on SessionFactory sessionFactory = new Configuration().configure().buildSession
Hibernate NullPointerException
How to use Hibernate along with GWT instantiation on eclipse 3.2
First Test App Not Working
Hibernate properties