wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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:
 
Consider Paul's rocket mass heater.
 
subject: Can i mix hibernate configuration data in properties and hibernate.cfg.xml files
 
Similar Threads
Hibernate properties
Hibernate NullPointerException
NullPointerException on SessionFactory sessionFactory = new Configuration().configure().buildSession
First Test App Not Working
How to use Hibernate along with GWT instantiation on eclipse 3.2