The moose likes Object Relational Mapping and the fly likes Need configuratoin Information in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Need configuratoin Information in hibernate" Watch "Need configuratoin Information in hibernate" New topic
Author

Need configuratoin Information in hibernate

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
HI am new to hibernate. Previously i used JDBC, for that i configured database in Eclipse.
just go to Admin console(Weblogic Server 9.2) -> JDBC -> Services->Specify JNDI name, Driver class,
Url details. In hibernate should i configure the same details or creating hibernate.cfg.xml and
hbm.xml is enough. can you brief
Jiale He
Greenhorn

Joined: Sep 08, 2010
Posts: 3
Yes, you have to configure the connection parameters in configuration.cfg.xml.
If you are using spring integrated with Hibernate, delegate that work to applicationContext.xml in spring.


For mapping file, you have to map the POJOS against the tables sitting in the underlying table. Usually, one POJO one table.

Hope it helps

This message was edited 1 time. Last update was at by Jiale He

 
 
subject: Need configuratoin Information in hibernate
 
developer file tools