6.3.3. Bidirectional associations with indexed collections
이 콘텐츠는 선택한 언어로 제공되지 않습니다.
6.3.3. Bidirectional associations with indexed collections
A bidirectional association where one end is represented as a <list> or <map>, 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:
Copy to ClipboardCopied!Toggle word wrapToggle overflow
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: