- Domain Model
- Mapping types
 - Naming strategies
 - Basic Types
- Hibernate-provided BasicTypes
 - The @Basic annotation
 - The @Column annotation
 - BasicTypeRegistry
 - Explicit BasicTypes
 - Custom BasicTypes
 - Mapping enums
 - Mapping LOBs
 - Mapping Nationalized Character Data
 - Mapping UUID Values
 - UUID as binary
 - UUID as (var)char
 - PostgeSQL-specific UUID
 - UUID as identifier
 - Mapping Date/Time Values
 - JPA 2.1 AttributeConverters
 - SQL quoted identifiers
 - Generated properties
 - Column transformers: read and write expressions
 - @Formula
 - @Where
 - @Filter
 - @FilterJoinTable
 - @Any mapping
 - @JoinFormula mapping
 - @JoinColumnOrFormula mapping
 
 - Embeddable types
 - Entity types
 - Identifiers
- Simple identifiers
 - Composite identifiers
 - Composite identifiers with @EmbeddedId
 - Composite identifiers with @IdClass
 - Composite identifiers with associations
 - Generated identifier values
 - Interpreting AUTO
 - Using sequences
 - Using IDENTITY columns
 - Using identifier table
 - Using UUID generation
 - Optimizers
 - Using @GenericGenerator
 - Derived Identifiers
 
 - Associations
 - Collections
 
 
测试
src/main/resources/META-INF/persistence.xml
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
             http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
  version="2.1">
  <persistence-unit name="test">
    <properties>
      <property name="javax.persistence.jdbc.url" value="jdbc:p6spy:postgresql://localhost:5432/test" />
      <property name="javax.persistence.jdbc.user" value="postgres" />
      <property name="javax.persistence.jdbc.password" value="postgres" />
      <property name="javax.persistence.schema-generation.database.action" value="drop-and-create" />
    </properties>
  </persistence-unit>
</persistence>