Internal Website Search

101-150 of 200 results

javax.persistence.TableGenerator

(Optional) The initial value to be used to initialize the column that stores the last value generated ... "" (Optional) Name of the primary key column in the table. Defaults to a provider-chosen name ... to a provider-chosen value to store in the primary key column of the generator table Since: JPA 1.0

javax.persistence.JoinTable

or control the generation of a foreign key constraint for the columns corresponding ... constraint for the columns corresponding to the inverseJoinColumns element when table generation is in ... [] inverseJoinColumns default {} (Optional) The foreign key columns of the join table

javax.persistence.MapKeyColumn.name

) The name of the map key column . The table in which it is found depends upon the context. If the map key is for an element collection, the map key column is in the collection table for the map value ... table, the map key column is in a join table. If the map key is for a OneToMany entity relationship

javax.persistence.PrimaryKeyJoinColumn.referencedColumnName

default "" (Optional) The name of the primary key column of the table being joined to. Defaults to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping); or

javax.persistence.AttributeOverrides

({ @AttributeOverride(name="startDate", column =@ Column ("EMP_START")), @AttributeOverride(name="endDate", column =@ Column ("EMP_END")) }) public EmploymentPeriod getEmploymentPeriod

javax.persistence.Embedded

="startDate", column =@ Column ("EMP_START")), @AttributeOverride(name="endDate", column =@ Column ("EMP_END

javax.persistence.MapKeyJoinColumn.table

) The name of the table that contains the foreign key column . If the join is for a map key for an element collection, the foreign key column is in the collection table for the map value. If the join ... a join table, the foreign key column is in a join table. If the join is for a OneToMany entity

javax.persistence.Id

.sql.Date ; java.math.BigDecimal ; java.math.BigInteger . The mapped column for the primary key of the entity is assumed to be the primary key of the primary table. If no Column annotation is specified, the primary key column name is assumed to be the name of the primary key property or field. Example

javax.persistence.PrimaryKeyJoinColumn.name

"" (Optional) The name of the primary key column of the current table. Defaults to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping); or the same name as the primary

javax.persistence.DiscriminatorValue

the value of the discriminator column for entities of the given type. The DiscriminatorValue annotation ... specified and a discriminator column is used, a provider-specific function will be used to generate a value ... is the entity name. The inheritance strategy and the discriminator column are only specified in

javax.persistence.AssociationOverride

to override the mapping of the join table and/or its join columns . Example 1: Overriding ... constraint for the columns corresponding to the joinColumns element when table generation is in effect ... default {} The join column (s) being mapped to the persistent attribute(s). The joinColumns elements

AttributeConverter.convertToEntityAttribute(dbData) - JPA Method

;dbData ) Converts the data stored in the database column into the value to be stored in the entity ... type for the corresponding column for use by the JDBC driver: i.e., persistence providers are not expected to do such type conversion. Parameters: dbData - the data from the database column

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.ForeignKey

actions it determines most appropriate for the join column (s) to which the foreign key annotation ... a constraint whose update and delete actions it determines most appropriate for the join column (s ... (which may or may not result in the generation of a constraint for the given join column (s). Since: JPA 2.1

javax.persistence.EmbeddedId

. The AttributeOverride annotation may be used to override the column mappings declared within the embeddable ... class Dependent { // default column name for "name" attribute is overridden @AttributeOverride(name="name", @ Column (name="dep_name")) @EmbeddedId DependentId id; ... @MapsId("empPK") @ManyToOne Employee

javax.persistence.EntityResult.discriminatorColumn

JPA Annotation Attribute in javax.persistence.EntityResult String discriminatorColumn default "" Specifies the column name (or alias) of the column in the SELECT list that is used to determine the type of the entity instance. Since: JPA 1.0

javax.persistence.Lob

and character-based types defaults to Blob. Example 1: @Lob @Basic(fetch=LAZY) @ Column (name="REPORT") protected String report; Example 2: @Lob @Basic(fetch=LAZY) @ Column (name="EMP_PIC

javax.persistence.OrderBy

must correspond to columns for which comparison operators are supported. The dot (".") notation is used ... when an order column is specified. Example 1: @Entity public class Course { ... @ManyToMany

javax.persistence.MapKeyJoinColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults to SQL generated by the provider for the column . Since: JPA 2.0

javax.persistence.MapKeyColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.MapKeyColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults to the generated SQL to create a column of the inferred type. Since: JPA 2.0

javax.persistence.MapKeyColumn.scale

JPA Annotation Attribute in javax.persistence.MapKeyColumn int scale default 0 (Optional) The scale for a decimal (exact numeric) column . (Applies only if a decimal column is used.) Since: JPA 2.0

javax.persistence.MapKeyColumn.precision

JPA Annotation Attribute in javax.persistence.MapKeyColumn int precision default 0 (Optional) The precision for a decimal (exact numeric) column . (Applies only if a decimal column is used.) Default: 0. (The value must be set by the developer.) Since: JPA 2.0

javax.persistence.MapKeyColumn.length

JPA Annotation Attribute in javax.persistence.MapKeyColumn int length default 255 (Optional) The column length. (Applies only if a string-valued column is used.) Since: JPA 2.0

javax.persistence.MapKeyColumn.unique

JPA Annotation Attribute in javax.persistence.MapKeyColumn boolean unique default false (Optional) Whether the column 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 corresponds to only a single column

javax.persistence.PrimaryKeyJoinColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.PrimaryKeyJoinColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column . This should not be specified for a OneToOne primary key association. Defaults to the generated SQL to create a column of the inferred type. Since: JPA 1.0

javax.persistence.SecondaryTables

JPA Annotation SecondaryTables Target: TYPE Implemented Interfaces: Annotation Specifies multiple secondary tables for an entity. Example 1: Multiple secondary tables assuming primary key columns ... : Multiple secondary tables with differently named primary key columns . @Entity @Table(name="EMPLOYEE

javax.persistence.EntityManager

Object if there is only one column in the select list.) Column values are returned in the order

javax.persistence.ColumnResult.type

JPA Annotation Attribute in javax.persistence.ColumnResult Class type default void.class (Optional) The Java type to which the column type is to be mapped. If the type element is not specified, the default JDBC type mapping for the column will be used. Since: JPA 2.1

javax.persistence.OrderColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.OrderColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults to generated SQL to create a column of the inferred type. Since: JPA 2.0

javax.persistence.ForeignKey.value

a constraint whose update and delete actions it determines most appropriate for the join column (s ... may not result in the generation of a constraint for the given join column (s). Since: JPA 2.1

javax.persistence.GeneratedValue

primary keys. Example 1: @Id @GeneratedValue(strategy=SEQUENCE, generator="CUST_SEQ") @ Column (name="CUST ... ="CUST_GEN") @ Column (name="CUST_ID") Long id; See Also: Id TableGenerator SequenceGenerator Since: JPA 1

javax.persistence.DiscriminatorColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.DiscriminatorColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the discriminator column . Defaults to the provider-generated SQL to create a column of the specified discriminator type. Since: JPA 1.0

javax.persistence.JoinColumn.table

JPA Annotation Attribute in javax.persistence.JoinColumn String table default "" (Optional) The name of the table that contains the column . If a table is not specified, the column is assumed to be in the primary table of the applicable entity. Default: If the join is for a OneToOne or ManyToOne

javax.persistence.JoinColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.JoinColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults to the generated SQL for the column . Since: JPA 1.0

javax.persistence.criteria.CriteriaUpdate

using bulk update operations must manually update the value of the version column , if desired, and/or manually validate the value of the version column . The persistence context is not synchronized

EntityManager.createNativeQuery(sqlString) - JPA Method

if there is only one column in the select list.) Column values are returned in the order of their appearance in

javax.persistence.DiscriminatorValue.value

JPA Annotation Attribute in javax.persistence.DiscriminatorValue String value default null (Optional) The value that indicates that the row is an entity of the annotated entity type. If the DiscriminatorValue annotation is not specified and a discriminator column is used, a provider-specific

javax.persistence.EntityResult.fields

JPA Annotation Attribute in javax.persistence.EntityResult FieldResult [] fields default {} Maps the columns specified in the SELECT list of the query to the properties or fields of the entity class. 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.jdo.annotations.Unique

Annotation Attributes Column [] columns default {} Columns that compose this unique constraint

javax.jdo.annotations.Index

indexes. Corresponds to the xml element "index". Since: JDO 2.1 Public Annotation Attributes Column [] columns default {} Columns that compose this index. Since: JDO 2.1 String[] members default

javax.jdo.annotations.ForeignKey

JDO Annotation ForeignKey Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for a database foreign-key. Corresponds to the xml element "foreign-key". Since: JDO 2.1 Public Annotation Attributes Column [] columns default {} Columns

javax.jdo.annotations.Join.generateForeignKey

JDO Annotation Attribute in javax.jdo.annotations.Join String generateForeignKey default "" Generate or assume a foreign key constraint exists on the column or columns associated with this join. Specify "true" or "false". Since: JDO 2.1

javax.jdo.annotations.Join.generatePrimaryKey

JDO Annotation Attribute in javax.jdo.annotations.Join String generatePrimaryKey default "" Generate or assume a primary key constraint exists on the column or columns associated with this join. Specify "true" or "false". Since: JDO 2.1

javax.jdo.annotations.Key.generateForeignKey

JDO Annotation Attribute in javax.jdo.annotations.Key String generateForeignKey default "" Generate or assume a foreign key constraint exists on the column or columns associated with this join. Specify "true" or "false". Since: JDO 2.1

javax.jdo.annotations.Value.generateForeignKey

JDO Annotation Attribute in javax.jdo.annotations.Value String generateForeignKey default "" Generate or assume a foreign key constraint exists on the column or columns associated with this join. Specify "true" or "false". Since: JDO 2.1

javax.jdo.annotations.Embedded

"" The column in the embedded object used to judge if the embedded object is null. Since: JDO 2.1 String nullIndicatorValue default "" The value in the null column to interpret the object as being null

javax.jdo.annotations.Element.generateForeignKey

JDO Annotation Attribute in javax.jdo.annotations.Element String generateForeignKey default "" Generate or assume a foreign key constraint exists on the column or columns associated with this join. Specify "true" or "false". Since: JDO 2.1

javax.jdo.annotations.Persistent.serialized

JDO Annotation Attribute in javax.jdo.annotations.Persistent String serialized default "" Whether this member is serialized into a single column . Since: JDO 2.1

javax.jdo.annotations.Persistent.nullIndicatorColumn

JDO Annotation Attribute in javax.jdo.annotations.Persistent String nullIndicatorColumn default "" Null indicator column for this member. Used for nested embedded fields or properties to indicate whether the embedded instance should have a null value. Since: JDO 2.1