Internal Website Search

101-150 of 200 results

Getting Foreign Key

can get line level primary key but i also nead to get foreign key which is belongs to header ... this i got pojo name query.getPrimaryKey() by using this i can get primary key now i nead ... How to get Foreign key using  org.eclipse.persistence.queries.WriteObjectQuery class

Can a Set be a foreign key?

I have two classes, Cell and Character.  Basically, the cell is like a room, and contains a variable (private Set cellHeldCharacters;) which holds the IDs of the characters within the cell (The IDs are Primary Keys ).  Can I use the Foreign Key annotation for the variable, or

javax.persistence.JoinColumn.name

of the referencing entity or embeddable class; "_"; the name of the referenced primary key column ... of the entity; "_"; the name of the referenced primary key column. Since: JPA 1.0 ... ) The name of the foreign key column. The table in which it is found depends upon the context. If the join

EntityManager.find(entityClass,primaryKey) - JPA Method

;   Object primaryKey ) Find by primary key . Search for an entity of the specified class and primary key . If the entity instance is contained in the persistence context, it is returned from there. Parameters: entityClass - entity class primaryKey - primary key Return: the found entity

javax.persistence.SequenceGenerator

Defines a primary key generator that may be referenced by name when a generator element is specified ... on the primary key field or property. The scope of the generator name is global to the persistence unit ... generator name that can be referenced by one or more classes to be the generator for primary key

EntityManager.find(entityClass,primaryKey,lockMode) - JPA Method

key and lock. Search for an entity of the specified class and primary key and lock it with respect ... only statement-level rollback Parameters: entityClass - entity class primaryKey - primary key lockMode - lock ... a valid type for that entity's primary key or is null TransactionRequiredException

EntityManager.find(entityClass,primaryKey,properties) - JPA Method

;   Object primaryKey,    Map  properties ) Find by primary key , using the specified properties. Search for an entity of the specified class and primary key ... class primaryKey - primary key properties - standard and vendor-specific properties and hints Return

EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method

; Map  properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect to the specified lock type ... class primaryKey - primary key lockMode - lock mode properties - standard and vendor-specific

javax.persistence.IdClass

primary key class that is mapped to multiple fields or properties of the entity. The names of the fields or properties in the primary key class and the primary key fields or properties of the entity ... Attributes Class value default null Primary key class Since: JPA 1.0

javax.persistence.GenerationType

.GenerationType Defines the types of primary key generation strategies. See Also: GeneratedValue Since: JPA 1 ... Indicates that the persistence provider must assign primary keys for the entity using a database identity column. Since: JPA 1.0 SEQUENCE Indicates that the persistence provider must assign primary keys

javax.persistence.Table

for a primary key , as the primary key index will be created automatically. Since: JPA 2.1 String ... entailed by primary key mappings. Defaults to no additional constraints. Since: JPA 1.0 ... JPA Annotation Table Target: TYPE Implemented Interfaces: Annotation Specifies the primary table

FROM clause (JPQL / Criteria API)

,FROM, GROUP, HAVING, IN, INDEX, INNER, IS, JOIN, KEY , LEADING, LEFT, LENGTH, LIKE,LOCATE, LOWER, MAX

Database Schema Evolution

type to any map type as long as the keys and values are convertible (e.g. from HashMap to TreeMap

ObjectDB Overview

Database Key Features 100% pure Java Object-Oriented Database Management System (ODBMS). No proprietary

javax.persistence.MapKeyJoinColumn.table

entity relationship using a foreign key mapping strategy, the name of the primary table of the entity that is the value of the map. Since: JPA 2.0 ... ) 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

javax.persistence.CollectionTable

; "_"; the name of the referenced primary key column.) However, if there is more than one join column ... ) (Optional) Used to specify or control the generation of a foreign key constraint for the columns ... . If no foreign key annotation element is specified in either location, the persistence provider's

javax.persistence.OrderBy

element is not specified for an entity association, ordering by the primary key of the associated entity ... { ... @ManyToMany(mappedBy="students") @OrderBy // ordering by primary key is assumed public List ... . If the ordering element is not specified, ordering by the primary key of the associated entity is assumed. Since: JPA 1.0

javax.persistence.Column

in addition to any constraint entailed by primary key mapping and to constraints specified ... to be in the primary table. Since: JPA 1.0 boolean unique default false (Optional) Whether the column is a unique key . This is a shortcut for the UniqueConstraint annotation at the table level

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.Table.indexes

JPA Annotation Attribute in javax.persistence.Table 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.CollectionTable.joinColumns

JPA Annotation Attribute in javax.persistence.CollectionTable JoinColumn [] joinColumns default {} (Optional) The foreign key columns of the collection table which reference the primary table ... of the referenced primary key column.) However, if there is more than one join column, a JoinColumn annotation

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.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.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 ... the primary key column of the generator table Since: JPA 1.0

EntityManager.getReference(entityClass,primaryKey) - JPA Method

while the entity manager was open. Parameters: entityClass - entity class primaryKey - primary key Return ... type or the second argument is not a valid type for that entity's primary key or is null

javax.persistence.Cache

entity. Parameters: cls - entity class primaryKey - primary key Return: boolean indicating ... the cache. Parameters: cls - entity class primaryKey - primary key Since: JPA 2.0 void evictAll

javax.persistence.Index

JPA Annotation Index Implemented Interfaces: Annotation Used in schema generation to specify creation of an index. Note that it is not necessary to specify an index for a primary key , as the primary key index will be created automatically. The syntax of the columnList element is a column_list , as

javax.persistence.GeneratedValue.strategy

JPA Annotation Attribute in javax.persistence.GeneratedValue GenerationType strategy default AUTO (Optional) The primary key generation strategy that the persistence provider must use to generate the annotated entity primary key . Since: JPA 1.0

javax.persistence.MapKeyColumn.table

is for a OneToMany entity relationship using a foreign key mapping strategy, the name of the primary table of the entity that is the value of the map. Since: JPA 2.0 ... ) The name of the table that contains the column. Defaults: If the map key is for an element collection, the name of the collection table for the map value. If the map key is for a OneToMany or ManyToMany

javax.persistence.JoinColumn.unique

) 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 necessary to explicitly specify this for a join column that corresponds to a primary key that is part of a foreign key . Since: JPA 1.0

javax.persistence.JoinColumn.referencedColumnName

): The same name as the primary key column of the referenced table. Since: JPA 1.0 ... "" (Optional) The name of the column referenced by this foreign key column. When used with entity ... of the target entity. When used with a unidirectional OneToMany foreign key mapping, the referenced column

javax.persistence.MapKeyColumn.unique

) 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. 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.PrimaryKeyJoinColumn.foreignKey

@ForeignKey(PROVIDER_DEFAULT) (Optional) Used to specify or control the generation of a foreign key constraint for the primary key join column 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.Column.unique

) 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. 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.MapKeyJoinColumn.referencedColumnName

.) The same name as the primary key column of the referenced table Since: JPA 2.0 ... JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn String referencedColumnName default "" (Optional) The name of the column referenced by this foreign key column. The referenced column

javax.persistence.OneToOne

that assumes both the source and target share the same primary key values. // On Employee class ... : One-to-one association that maps a foreign key column // On Customer class: @OneToOne(optional=false) @JoinColumn

javax.persistence.JoinColumn.table

to be in the primary table of the applicable entity. Default: If the join is for a OneToOne or ManyToOne mapping using a foreign key mapping strategy, the name of the table of the source entity or embeddable. If the join is for a unidirectional OneToMany mapping using a foreign key mapping strategy

javax.persistence.MapsId.value

JPA Annotation Attribute in javax.persistence.MapsId String value default "" (Optional) The name of the attribute within the composite key to which the relationship attribute corresponds. If not supplied, the relationship maps the entity's primary key . Since: JPA 2.0

javax.jdo.spi.JDOImplHelper

. The identity instance returned has no relationship with the values of the primary key fields ...  fm, Object oid) Copy fields to an outside source from the key fields in the ObjectId ... for each key field in the ObjectId. For example, an ObjectId class that has three key fields ( int id

javax.jdo.annotations.ForeignKey

. This is needed iff annotating a type where the foreign key is not defined on the primary table ... 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

"" Whether to use an outer join. Since: JDO 2.1 String primaryKey default "" Name for a generated primary key ... for a generated foreign key constraint. Since: JDO 2.1 String generateForeignKey default "" Generate or assume a foreign key constraint exists on the column or columns associated with this join. Specify

PersistenceCapable.jdoNewObjectIdInstance() - JDO Method

, this method must be called on an instance of a persistence-capable class with its primary key field ... is initialized with the value(s) of the primary key field(s) of the instance on which the method is called. Return: the new instance created. Since: JDO 1.0 ... instance of the ObjectId class for this PersistenceCapable class and initialize the key fields from

javax.jdo.annotations.Persistent

is part of the primary key for application identity. This is equivalent to specifying @PrimaryKey as ... , for example relationships with multiple column foreign keys . Since: JDO 2.1 String customValueStrategy ... are dependent. Since: JDO 2.1 String dependentKey default "" Whether the keys of this member

JDOImplHelper.newObjectIdInstance(pcClass,obj) - JDO Method

Class for JDO identity, using the key constructor of the object id class. It is intended for single field identity. The identity instance returned has no relationship with the values of the primary key fields of the persistence-capable instance on which the method is called. If the key is the wrong

PersistenceCapable.jdoNewObjectIdInstance(o) - JDO Method

has no relationship with the values of the primary key fields of the persistence-capable instance on which the method is called. If the key is the wrong class for the object id class, null is returned ...  o ) Create a new instance of the class used for JDO identity, using the key constructor

PersistenceManager.getObjectId(pc) - JDO Method

application-managed ( primary key ) JDO identity. If it is used for instances of classes using datastore ... key fields, then this method returns the identity as of the beginning of the transaction. The value

javax.jdo.annotations.ForeignKey.table

JDO Annotation Attribute in javax.jdo.annotations.ForeignKey String table default "" Table for the foreign key . This is needed iff annotating a type where the foreign key is not defined on the primary table for the type. Since: JDO 2.1

javax.jdo.annotations.Persistent.primaryKey

JDO Annotation Attribute in javax.jdo.annotations.Persistent String primaryKey default "" Whether this member is part of the primary key for application identity. This is equivalent to specifying @PrimaryKey as a separate annotation on the member. Since: JDO 2.1

javax.jdo.annotations.PrimaryKey.column

JDO Annotation Attribute in javax.jdo.annotations.PrimaryKey String column default "" Name of the column to use for the primary key Since: JDO 2.1

javax.jdo.annotations.PrimaryKey.name

JDO Annotation Attribute in javax.jdo.annotations.PrimaryKey String name default "" Name of the primary key constraint Since: JDO 2.1