javax.persistence.Table - JPA annotation
javax.persistence
Annotation Table
- Target:
- Classes
SecondaryTable
or SecondaryTables
annotation. If no Table
annotation is specified for an entity class, the default values apply.
Example:
@Entity @Table(name="CUST", schema="RECORDS") public class Customer { ... }
- Since:
- JPA 1.0
Defaults to the default catalog.
- Default value:
- ""
- Since:
- JPA 1.0
Defaults to the entity name.
- Default value:
- ""
- Since:
- JPA 1.0
Defaults to the default schema for user.
- Default value:
- ""
- Since:
- JPA 1.0
Column
and JoinColumn
annotations and constraints entailed by primary key mappings. Defaults to no additional constraints.
- Default value:
- {}
- Since:
- JPA 1.0