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
posted 6 years ago
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
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads