-
@Target(TYPE) @Retention(RUNTIME) public @interface Table
Specifies the primary table for the annotated entity. Additional tables may be specified using SecondaryTable or SecondaryTables annotation.If no
Tableannotation is specified for an entity class, the default values apply.Example: @Entity @Table(name="CUST", schema="RECORDS") public class Customer { ... }- 从以下版本开始:
- Java Persistence 1.0