There are 2 prevalent specification in the Java ORM world. JDO provides the most complete definition, whilst JPA is the most recent.
In this guide we show the different types of ORM relation commonly used, and mark against it which specification supports it. This list is not yet complete but will be added to to provide a comprehensive list of relationship type and where you can find it.
Field Type | Relation | JDO | JPA |
---|---|---|---|
PC |
|||
PC |
|||
PC |
|||
PC |
|||
PC |
|||
PC |
|||
Interface |
|||
Interface |
|||
Interface |
? |
||
Collection<PC> |
|||
Collection<PC> |
|||
Collection<PC> |
|||
Collection<PC> |
|||
Collection<Non-PC> |
|||
Collection<PC> |
|||
Collection<PC> |
|||
Collection<PC> |
|||
Collection<PC> |
|||
Collection<PC> |
|||
Collection<PC> |
|||
List<PC> |
|||
List<PC> |
|||
List<PC> |
|||
List<PC> |
|||
List<Non-PC> |
|||
List<PC> |
|||
List<PC> |
|||
List<PC> |
|||
List<PC> |
|||
Map<PC, PC> |
|||
Map<Non-PC, PC> |
|||
Map<PC, Non-PC> |
|||
Map<Non-PC, Non-PC> |
|||
Map<Non-PC, PC> |
|||
Map<Non-PC, PC> |
|||
Map<PC, Non-PC> |
|||
Map<PC, PC> |
|||
Map<PC, PC> |
|||
PC[ ] |
|||
PC[ ] |
|||
PC[ ] |
|||
Non-PC[ ] |