Register / Login
Object Relational Mapping
problem with on to one mapping in hibernate
Rahul Kumar Singhal
posted 8 years ago
i m having problem in creating one to one mapping.
Whatever i know is it can be done in two ways
1> primary ky association and 2> unique foreign key associations
but the primary keys must be same in both of the tables.
I want one to one mapping between two tables where on can have lesser no of primary keys.
please suggest me a way out for the problem
complex primary key with EJB 3.0
composite key, saving in two tables is giving NPE.
retriving two primary keys
problem in mapping .
Compound map doubt