Quote:
Then you are telling hibernate that the "many" side ie, Child class is managing the "link" info (in a bi-directional association). In a non-bidirectional one-to-many, ie the parent just has many children, and the child object doesn't know about the parent - Hibernate just defaults to the right management, ie managed by the parent.
Parent(1) to (M)Children
uni-directional:
parent has a set of children
and Children don't have a reference back to Parent, ie there is no attribute defined in the Child class that is of type Parent, and thus pointing to the parent.
bi-directional:
The Child has the Parent attribute and it refers to the "owning" parent.