@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Table
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 { ... }
public abstract String name
Defaults to the entity name.
public abstract String catalog
Defaults to the default catalog.
public abstract String schema
Defaults to the default schema for user.
Copyright © 2016. All rights reserved.