tags:

views:

38

answers:

0

The Hibernate reference document says:

A bidirectional association where one end is represented as a or , requires special consideration. If there is a property of the child class that maps to the index column you can use inverse="true" on the collection mapping

Then in example map-key is linked with child table on "name" column.

The documentation continues:

If there is no such property on the child class, the association cannot be considered truly bidirectional. That is, there is information available at one end of the association that is not available at the other end. In this case, you cannot map the collection inverse="true". Instead, you could use the following mapping

And in example only "name" column is removed from Child table.

But still it is reference from Parent table.

I don't understand clearly what is going on in this section of reference.