parent « Association « JPA Q&A





1. Hibernate uniderictional associations with parents ID    forum.hibernate.org

Hi All, I am new to hibernate and trying to figure out how 1-to-1 and 1-to-many relationships can be represented in hibernate config, if I want to put the parent id in child row without child object storing a reference to parentId. Let me explain with an example: Lets say I have an object model as below: public class Stock { ...