ObjectDB Database Search
101-150 of 200 resultsjavax.persistence.CollectionTable.indexes JPA Annotation Attribute in javax.persistence.CollectionTable Index [] indexes default {} (Optional) Indexes for the table . These are only used if table generation is in effect. Since: JPA 2.1 | |
javax.persistence.Column.unique JPA Annotation Attribute in javax.persistence.Column boolean unique default false (Optional) Whether the column is a unique key. This is a shortcut for the UniqueConstraint annotation at the table ... . This constraint applies in addition to any constraint entailed by primary key mapping and to constraints specified at the table level. Since: JPA 1.0 | |
javax.persistence.DiscriminatorValue the hierarchy. Example: @Entity @ Table (name="CUST") @Inheritance(strategy=SINGLE_ TABLE ) @DiscriminatorColumn | |
javax.persistence.GenerationType for the entity using a database sequence. Since: JPA 1.0 TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness | |
javax.persistence.Inheritance if no inheritance type is specified for an entity class hierarchy, the SINGLE_ TABLE mapping strategy is used ... strategy default SINGLE_ TABLE The strategy to be used for the entity inheritance hierarchy. Since: JPA 1.0 | |
javax.persistence.JoinTable.name JPA Annotation Attribute in javax.persistence.JoinTable String name default "" (Optional) The name of the join table . Defaults to the concatenated names of the two associated primary entity tables , separated by an underscore. Since: JPA 1.0 | |
javax.persistence.JoinTable.joinColumns JPA Annotation Attribute in javax.persistence.JoinTable JoinColumn [] joinColumns default {} (Optional) The foreign key columns of the join table which reference the primary table of the entity owning the association. (I.e. the owning side of the association). Uses the same defaults as for JoinColumn . Since: JPA 1.0 | |
javax.persistence.JoinTable.inverseJoinColumns JPA Annotation Attribute in javax.persistence.JoinTable JoinColumn [] inverseJoinColumns default {} (Optional) The foreign key columns of the join table which reference the primary table of the entity that does not own the association. (I.e. the inverse side of the association). Uses the same defaults as for JoinColumn . Since: JPA 1.0 | |
javax.persistence.JoinTable.uniqueConstraints JPA Annotation Attribute in javax.persistence.JoinTable UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints that are to be placed on the table . These are only used if table generation is in effect. Defaults to no additional constraints. Since: JPA 1.0 | |
javax.persistence.JoinTable.indexes JPA Annotation Attribute in javax.persistence.JoinTable Index [] indexes default {} (Optional) Indexes for the table . These are only used if table generation is in effect. Since: JPA 2.1 | |
javax.persistence.ManyToMany, the owning side and the non-owning, or inverse, side. The join table is specified on the owning ... annotation to specify the relationship field or property of the owning side. The join table | |
javax.persistence.MapKeyColumn.unique at the table level and is useful for when the unique key constraint corresponds to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping and to constraints specified at the table level. Since: JPA 2.0 | |
javax.persistence.MapKeyJoinColumn.referencedColumnName is in the table of the target entity. Default (only applies if single join column is being used.) The same name as the primary key column of the referenced table Since: JPA 2.0 | |
javax.persistence.PrimaryKeyJoinColumns: ValuedCustomer subclass @Entity @ Table (name="VCUST") @DiscriminatorValue("VCUST") @PrimaryKeyJoinColumns ... when table generation is in effect. If both this element and the foreignKey element of any | |
javax.persistence.SecondaryTable.pkJoinColumns JPA Annotation Attribute in javax.persistence.SecondaryTable PrimaryKeyJoinColumn [] pkJoinColumns default {} (Optional) The columns that are used to join with the primary table . Defaults to the column(s) of the same name(s) as the primary key column(s) in the primary table . Since: JPA 1.0 | |
javax.persistence.SecondaryTable.uniqueConstraints JPA Annotation Attribute in javax.persistence.SecondaryTable UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints that are to be placed on the table . These are typically only used if table generation is in effect. These constraints apply in addition to any constraints | |
javax.persistence.SecondaryTable.indexes JPA Annotation Attribute in javax.persistence.SecondaryTable Index [] indexes default {} (Optional) Indexes for the table . These are only used if table generation is in effect. Since: JPA 2.1 | |
javax.persistence.TableGenerator.uniqueConstraints JPA Annotation Attribute in javax.persistence.TableGenerator UniqueConstraint [] uniqueConstraints default {} (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 primary key constraints. Defaults to no additional constraints. Since: JPA 1.0 | |
javax.persistence.TableGenerator.indexes JPA Annotation Attribute in javax.persistence.TableGenerator Index [] indexes default {} (Optional) Indexes for the table . These are only used if table generation is in effect. Note that it is not necessary to specify an index for a primary key, as the primary key index will be created automatically. Since: JPA 2.1 | |
javax.persistence.UniqueConstraint JPA Annotation UniqueConstraint Implemented Interfaces: Annotation Specifies that a unique constraint is to be included in the generated DDL for a primary or secondary table . Example: @Entity @ Table ( name="EMPLOYEE", uniqueConstraints= @UniqueConstraint(columnNames={"EMP_ID", "EMP_NAME"}) ) public | |
javax.persistence.AssociationOverride.joinColumns. The joinColumns element must not be specified if a join table is used in the overriding of the mapping of the relationship. Since: JPA 1.0 | |
javax.persistence.AssociationOverride.foreignKey JPA Annotation Attribute in javax.persistence.AssociationOverride ForeignKey foreignKey default @ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the joinColumns element when table generation is in effect | |
javax.persistence.CollectionTable.name JPA Annotation Attribute in javax.persistence.CollectionTable String name default "" (Optional) The name of the collection table . If not specified, it defaults to the concatenation of the name of the containing entity and the name of the collection attribute, separated by an underscore. Since: JPA 2.0 | |
javax.persistence.CollectionTable.catalog JPA Annotation Attribute in javax.persistence.CollectionTable String catalog default "" (Optional) The catalog of the table . If not specified, the default catalog is used. Since: JPA 2.0 | |
javax.persistence.CollectionTable.schema JPA Annotation Attribute in javax.persistence.CollectionTable String schema default "" (Optional) The schema of the table . If not specified, the default schema for the user is used. Since: JPA 2.0 | |
javax.persistence.CollectionTable.foreignKey JPA Annotation Attribute in javax.persistence.CollectionTable ForeignKey foreignKey default @ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the joinColumns element when table generation is in effect | |
javax.persistence.ElementCollection JPA Annotation ElementCollection Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies a collection of instances of a basic type or embeddable class. Must be specified if the collection is to be mapped by means of a collection table . Example: @Entity public class Person { @Id | |
javax.persistence.Embeddable JPA Annotation Embeddable Target: TYPE Implemented Interfaces: Annotation Specifies a class whose instances are stored as an intrinsic part of an owning entity and share the identity of the entity. Each of the persistent properties or fields of the embedded object is mapped to the database table | |
javax.persistence.GeneratedValue_ID") public Long getId() { return id; } Example 2: @Id @GeneratedValue(strategy= TABLE , generator | |
javax.persistence.Id of the entity is assumed to be the primary key of the primary table . If no Column annotation is specified | |
javax.persistence.Index DESC is not specified, ASC (ascending order) is assumed. See Also: Table SecondaryTable | |
javax.persistence.Inheritance.strategy JPA Annotation Attribute in javax.persistence.Inheritance InheritanceType strategy default SINGLE_ TABLE The strategy to be used for the entity inheritance hierarchy. Since: JPA 1.0 | |
javax.persistence.InheritanceType.JOINED JPA Enum Constant in javax.persistence.InheritanceType JOINED A strategy in which fields that are specific to a subclass are mapped to a separate table than the fields that are common to the parent class, and a join is performed to instantiate the subclass. Since: JPA 1.0 | |
javax.persistence.JoinColumn.unique JPA Annotation Attribute in javax.persistence.JoinColumn boolean unique default false (Optional) Whether the property is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint is only a single field. It is not | |
javax.persistence.JoinColumn.foreignKey JPA Annotation Attribute in javax.persistence.JoinColumn ForeignKey foreignKey default @ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint when table generation is in effect. If this element is not specified, the persistence provider's default foreign key strategy will apply. Since: JPA 2.1 | |
javax.persistence.JoinColumns) Used to specify or control the generation of a foreign key constraint when table generation is in | |
javax.persistence.JoinColumns.foreignKey JPA Annotation Attribute in javax.persistence.JoinColumns ForeignKey foreignKey default @ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint when table generation is in effect. If both this element and the foreignKey element of any | |
javax.persistence.JoinTable.catalog JPA Annotation Attribute in javax.persistence.JoinTable String catalog default "" (Optional) The catalog of the table . Defaults to the default catalog. Since: JPA 1.0 | |
javax.persistence.JoinTable.schema JPA Annotation Attribute in javax.persistence.JoinTable String schema default "" (Optional) The schema of the table . Defaults to the default schema for user. Since: JPA 1.0 | |
javax.persistence.JoinTable.foreignKey JPA Annotation Attribute in javax.persistence.JoinTable ForeignKey foreignKey default @ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the joinColumns element when table generation is in effect | |
javax.persistence.JoinTable.inverseForeignKey JPA Annotation Attribute in javax.persistence.JoinTable ForeignKey inverseForeignKey default @ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the inverseJoinColumns element when table generation is in | |
javax.persistence.MapKeyJoinColumn.unique JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn boolean unique default false (Optional) Whether the property is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint is only a single field. Since: JPA 2.0 | |
javax.persistence.MapKeyJoinColumn.foreignKey JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn ForeignKey foreignKey default @ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint when table generation is in effect. If this element is not specified, the persistence | |
javax.persistence.MapKeyJoinColumns constraint when table generation is in effect. If both this element and the foreignKey element of any | |
javax.persistence.MapKeyJoinColumns.foreignKey JPA Annotation Attribute in javax.persistence.MapKeyJoinColumns ForeignKey foreignKey default @ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint when table generation is in effect. If both this element and the foreignKey element of any | |
javax.persistence.OneToMany="CUST_ID") // join column is in table for Order public Set getOrders() {return orders;} Since: JPA 1 | |
javax.persistence.Persistence generateSchema (String persistenceUnitName, Map map) Create database schemas and/or tables | |
Persistence.generateSchema(persistenceUnitName,map) - JPA Static Method JPA Static Method in javax.persistence.Persistence void generateSchema ( String persistenceUnitName, Map map ) Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties. Called when schema generation is to occur | |
javax.jdo.annotations.PersistenceCapable for persisting this class or interface. Since: JDO 2.1 String table default "" Table to use for persisting this class or interface. Since: JDO 2.1 | |
javax.jdo.annotations.Persistent. Since: JDO 2.1 String table default "" Table to use for persisting this member. Since: JDO 2.1 Class[] types |