This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can i mix hibernate configuration data in properties and hibernate.cfg.xml files
 
Similar Threads
Hibernate properties
First Test App Not Working
NullPointerException on SessionFactory sessionFactory = new Configuration().configure().buildSession
How to use Hibernate along with GWT instantiation on eclipse 3.2
Hibernate NullPointerException