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
posted
0
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