Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need configuratoin Information in hibernate

 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic