Annotation Interface Table


@Target(TYPE) @Retention(RUNTIME) public @interface Table
Specifies the primary table mapped by the annotated entity type.

Additional tables may be specified using 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:
1.0