8) Hi,
I am having problem in mapping two classes in hibernate.
I have a class User which has user_id as primary key.
I have another class UserBook which have (user_id, book_id and supervisor_id)
as primary key and (user_id and supervisor_id) as foreign key to User(user_id).
I have used many-to-one simple and composite variations of hibernate but of no use than getting errors.
Have visited most of the blogs but found no solutions.
Please help me in getting this done.
I am having problem in mapping two classes in hibernate.
I have a class User which has user_id as primary key.
I have another class UserBook which have (user_id, book_id and supervisor_id)
as primary key and (user_id and supervisor_id) as foreign key to User(user_id).
I have used many-to-one simple and composite variations of hibernate but of no use than getting errors.
Have visited most of the blogs but found no solutions.
Please help me in getting this done.