Internal Website Search
1-24 of 24 resultsjavax.persistence.TableGenerator JPA Annotation TableGenerator Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation ... (across all generator types). Example 1: @Entity public class Employee { ... @ TableGenerator ( name="empGen ... : @Entity public class Address { ... @ TableGenerator ( name="addressGen", table="ID_GEN", pkColumnName="GEN | |
javax.persistence.TableGenerators JPA Annotation TableGenerators Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to group TableGenerator annotations. See Also: TableGenerator Since: JPA 2.2 Public Annotation Attributes TableGenerator [] value default null Since: JPA 2.2 | |
javax.persistence.TableGenerators.value JPA Annotation Attribute in javax.persistence. TableGenerators TableGenerator [] value default null Since: JPA 2.2 | |
javax.persistence.TableGenerator.name JPA Annotation Attribute in javax.persistence. TableGenerator String name default null (Required) A unique generator name that can be referenced by one or more classes to be the generator for id values. Since: JPA 1.0 | |
javax.persistence.TableGenerator.pkColumnName JPA Annotation Attribute in javax.persistence. TableGenerator String pkColumnName default "" (Optional) Name of the primary key column in the table. Defaults to a provider-chosen name. Since: JPA 1.0 | |
javax.persistence.TableGenerator.catalog JPA Annotation Attribute in javax.persistence. TableGenerator String catalog default "" (Optional) The catalog of the table. Defaults to the default catalog. Since: JPA 1.0 | |
javax.persistence.TableGenerator.schema JPA Annotation Attribute in javax.persistence. TableGenerator String schema default "" (Optional) The schema of the table. Defaults to the default schema for user. Since: JPA 1.0 | |
javax.persistence.TableGenerator.table JPA Annotation Attribute in javax.persistence. TableGenerator String table default "" (Optional) Name of table that stores the generated id values. Defaults to a name chosen by persistence provider. 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.TableGenerator.allocationSize JPA Annotation Attribute in javax.persistence. TableGenerator int allocationSize default 50 (Optional) The amount to increment by when allocating id numbers from the generator. Since: JPA 1.0 | |
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.initialValue JPA Annotation Attribute in javax.persistence. TableGenerator int initialValue default 0 (Optional) The initial value to be used to initialize the column that stores the last value generated. Since: JPA 1.0 | |
javax.persistence.TableGenerator.valueColumnName JPA Annotation Attribute in javax.persistence. TableGenerator String valueColumnName default "" (Optional) Name of the column that stores the last value generated. Defaults to a provider-chosen name. Since: JPA 1.0 | |
javax.persistence.TableGenerator.pkColumnValue JPA Annotation Attribute in javax.persistence. TableGenerator String pkColumnValue default "" (Optional) The primary key value in the generator table that distinguishes this set of generated values from others that may be stored in the table. Defaults to a provider-chosen value to store in | |
Auto Generated Values The TABLE strategy is very similar to the SEQUENCE strategy: @Entity @ TableGenerator ( name ="tab | |
Database Inconsistency or corruption. TableGenerator (name = "objectValueGen", table = "IdValues", schema = "dex_01", pkColumnName = "idName ... ="attributeGen") @javax.persistence. TableGenerator (name="attributeGen", table="IdValues", schema="dex ... = "valueGen") @javax.persistence. TableGenerator (name = "valueGen", table = "IdValues", schema = "dex | |
javax.persistence.GeneratedValue="CUST_GEN") @Column(name="CUST_ID") Long id; See Also: Id TableGenerator SequenceGenerator Since: JPA 1 ... in the SequenceGenerator or TableGenerator annotation. Defaults to the id generator supplied by | |
Possible cause for "Enhancement of type ... is old and cannot be used": FAILS on @OneToMany with @ TableGenerator /strategy = GenerationType.TABLE (www.objectdb.com ... object" when using a TableGenerator . That problem was demonstrated by the provided test case, fixed | |
javax.persistence.Index CollectionTable JoinTable TableGenerator Since: JPA 2.1 Public Annotation Attributes String columnList default | |
javax.persistence.GeneratedValue.generator JPA Annotation Attribute in javax.persistence.GeneratedValue String generator default "" (Optional) The name of the primary key generator to use as specified in the SequenceGenerator or TableGenerator annotation. Defaults to the id generator supplied by persistence provider. Since: JPA 1.0 | |
Failing to read entities under load in multithreaded tests) @ TableGenerator (name="TestIdTableGen", initialValue=0, allocationSize=50) public class | |
Criteria query error: Unexpected query token(strategy = GenerationType.TABLE, generator = "sequences") // @ TableGenerator (name = "sequences | |
@SequenceGenerator and single id in whole database classes: By using multiple @SequenceGenerator and/or @ TableGenerator definitions (with different name | |
ObjectDB 2.6.7 a bug in using @ TableGenerator / GenerationType.TABLE. Fixed handling classes with no persistent fields |