posted 15 years ago
iam trying to establish one to one relation between two entities using hibernate.
my enities are namely Student,Library
Student- fields-sno number (PK),sname varchar2(10) which correspond to table in db ie(oracle)
Library-fields-lno number(fk),lname varchar2(10) which correspond to table in db ie(oracle)
can any one give how to write mapping file for above entites to maintain one to one relation
and also entity fields.
can any one give information regarding it or code
i would thankful to them