Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

one-to-one hibernate  RSS feed

 
dachepalli subbarao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am new to hibernate.

I have two tables called Employee,Dept. In employee table we have a deptid and dept table contains dept information.
Now How to display employee details along with department details.
How to do this? Can any body explain in detail?
If i have to use one-to-one tag ,tell me how to do?

Thanks in Advance
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!