Hi All,
I have gone through one sample at
http://www.vaannila.com/hibernate/hibernate-example/hibernate-mapping-many-to-one-1.htmland tested the code which is working fine.
In above code If I want to save a Student Object I will save Address also in database which means that table Student and Address both will be filled with one more row.
My Scenario:
In my case huge Address table is already there and I just need to save Student Object by selecting Address_id (typically from UI). There should be no adding records of Address table.
Please let me know how to do that using Many to One Relationship.
I know it can be done using without using any Relationship.
Please help.
Thanks and Ragards,
Vikash Anand.