Representation of a join table for a Collection. A Collection covers a wide range of possibilities in terms of whether it allows duplicates or not, whether it allows nulls or not, whether it supports ordering via indexes, whether it supports ordering via a SELECT criteria, etc. Consequently the join table can vary depending on the required capabilities.
JoinTable Mappings
The join table consists of the following mappings :-
ownerMapping linking back to the owning class with the Collection.
elementMapping either being an FK link to the element table or being an embedded/serialised element stored wholly in this table.
orderMapping which may be null, or otherwise stores an index for the elements. This is either to provide uniqueness or ordering in a List (and part of the PK).
Representation of a join table for a Collection. A Collection covers a wide range of possibilities in terms of whether it allows duplicates or not, whether it allows nulls or not, whether it supports ordering via indexes, whether it supports ordering via a SELECT criteria, etc. Consequently the join table can vary depending on the required capabilities.
JoinTable Mappings
The join table consists of the following mappings :-
ownerMapping linking back to the owning class with the Collection.
elementMapping either being an FK link to the element table or being an embedded/serialised element stored wholely in this table.
orderMapping which may be null, or otherwise stores an index for the elements. This is either to provide uniqueness or ordering in a List (and part of the PK).
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.