Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!