Bookmark Topic Watch Topic
  • New Topic

hibernate beginner  RSS feed

 
anish reddy
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • 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.

so that i can insert record into a two tables
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do *not* post the same question multiple times. It wastes people time and effort, as they have to answer questions which may have already been answered.

Anyway, since the other question came first, please continue over there...

http://www.coderanch.com/forums/

I will close this topic.

Henry
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!