FileDocCategorySizeDatePackage
Table.javaAPI DocGlassfish v2 API3551Fri May 04 22:34:08 BST 2007javax.persistence

Table

public class Table
This annotation specifies the primary table for the annotated entity. Additional tables may be specified using {@link SecondaryTable} or {@link 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
Java Persistence 1.0

Fields Summary
Constructors Summary
Methods Summary
java.lang.Stringcatalog()
(Optional) The catalog of the table.

Defaults to the default catalog.

java.lang.Stringname()
(Optional) The name of the table.

Defaults to the entity name.

java.lang.Stringschema()
(Optional) The schema of the table.

Defaults to the default schema for user.

javax.persistence.UniqueConstraint[]uniqueConstraints()
(Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to any constraints specified by the {@link Column} and {@link JoinColumn} annotations and constraints entailed by primary key mappings.

Defaults to no additional constraints.