• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate-one to one relationship

 
anish reddy
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

iam facing diffculty while establishing one to one relationship between 2 tables.
my tables are
1.Student-which contains fields like - name,sno
2.library-which contains fields like-lno,lbookname

i want to establish relation between student->sno to library->lno

can any provide sample mapping file for the above said relation between student and library.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Hibernate documentation covers this. What have you tried?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic