Jakarta Mapping Guide (V6.0) Table of Contents
Total Page:16
File Type:pdf, Size:1020Kb
Jakarta Mapping Guide (v6.0) Table of Contents Classes . 2 Entity Class. 2 MappedSuperclass . 3 Embeddable Class . 3 Persistence Aware Class . 4 Read-Only Class . 4 SoftDelete . 5 Inheritance. 7 Discriminator . 8 Strategy : SINGLE_TABLE . 8 Strategy : JOINED . 10 Strategy : TABLE_PER_CLASS . 12 Mapped Superclasses . 13 Identity . 15 Application Identity. 15 Datastore Identity . 21 Nondurable Identity . 23 Derived Identity Relationships . 24 Versioning . 37 Version Field/Property . 37 Surrogate Version for Class . 37 Auditing . 39 Defining the Current User . 40 Full Traceability Auditing . 40 Multitenancy . 42 Multitenancy via Discriminator in Table . 42 Fields/Properties. 44 Persistent Fields . 44 Persistent Properties . 44 Making a field/property non-persistent . 45 Making a field/property read-only. 46 Field Types . 47 Primitive and java.lang Types. 48 java.math types . 49 Temporal Types (java.util, java.sql. java.time, Jodatime). 49 Collection/Map types . 51 Enums . 53 Geospatial Types . 54 Other Types . 61 Arrays . 61 Generic Type Variables. 62 Jakarta Attribute Converters. 64 Types extending Collection/Map . 66 Column Adapters . 67 Value Generation . 69 ValueGeneration Strategy AUTO. 69 ValueGeneration Strategy SEQUENCE. 70 ValueGeneration Strategy IDENTITY. 71 ValueGeneration Strategy TABLE. 73 ValueGeneration Strategy "UUID" . 74 ValueGeneration Strategy "Custom" . ..