ObjectDB Database Search

51-100 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

SpringBoot-Point

the primary components of the application: SpringBoot Point Example - Component Diagram

AnnotationRef jakarta.persistence.MapsId

a ManyToOne or OneToOne relationship attribute that provides the mapping for an EmbeddedId primary key , an attribute within an EmbeddedId primary key , or a simple primary key of the parent entity. The value ... corresponds. If the primary key of the entity is of the same Java type as the primary key of the entity

AnnotationRef jakarta.persistence.GeneratedValue

a generation strategy for generated primary keys . The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped superclass in conjunction with the Id annotation. The persistence provider is only required to support the GeneratedValue for simple primary keys

AnnotationRef jakarta.persistence.EmbeddedId

primary key of the entity. The type of the annotated field or property must be an plain type ... , and the entity class must not declare an IdClass . The embedded primary key type must implement equals and hashCode , defining value equality consistently with equality of the mapped primary key of the database

AnnotationRef jakarta.persistence.MapKeyColumn

relationship using a foreign key mapping strategy, the name of the primary table of the entity ... addition to any constraint entailed by primary key mapping and to constraints specified at the table ... the mapping for the key column of a map whose map key is a basic type. If the name element is not

AnnotationRef jakarta.persistence.Id

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 ... .getIdentifier Since: JPA 1.0 The JPA Primary Key article explains how to use Id . This annotation is a marker annotation (with no attributes).

AnnotationRef jakarta.persistence.SequenceGenerator

: Annotation Defines a primary key generator that may be referenced by name when a generator element ... or on the primary key field or property. The scope of the generator name is global ... on an entity class or primary key attribute of an entity class, then the name defaults to the name

AnnotationRef jakarta.persistence.JoinTable

{} (Optional) The foreign key columns of the join table which reference the primary table ... key columns of the join table which reference the primary table of the entity owning the association ... elements apply. The name of the join table is assumed to be the table names of the associated primary

AnnotationAttrRef jakarta.persistence.MapKey.name

of the persistent field or property of the associated entity that is used as the map key . Default: If the name element is not specified, the primary key of the associated entity is used as the map key . If the primary key is a composite primary key and is mapped as IdClass , an instance of the primary key class is used as the key . Since: JPA 1.0

AnnotationAttrRef jakarta.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

AnnotationAttrRef jakarta.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

AnnotationAttrRef jakarta.persistence.JoinColumn.name

of the referencing entity or embeddable class; " _ "; the name of the referenced primary key column ... : the name 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 this column is found depends on the context

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

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

an instance of the given entity class by primary key , using the specified plain. Search for an entity with the specified class and primary key . If the given options include a LockModeType , lock it with respect ... class primaryKey - primary key options - standard and vendor-specific options Return: the found entity

EntityManager.find(entityGraph,primaryKey,options) - JPA Method

an instance of the root entity of the given EntityGraph by primary key , using the specified plain ... and primary key . If the given options include a LockModeType , lock it with respect to the specified lock ... graph primaryKey - primary key options - standard and vendor-specific options Return: the found

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

primary key and obtain the given lock type for the resulting entity. Search for an entity of the specified class and primary key , and lock it with respect to the specified lock type. If the entity instance ... primaryKey - primary key lockMode - lock mode Return: the found entity instance or null if the entity

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 the entity, using the specified properties. Search for an entity of the specified class and primary key , and lock it with respect ... class primaryKey - primary key lockMode - lock mode properties - standard and vendor-specific

AnnotationRef jakarta.persistence.PrePersist

class, a mapped superclass, or a callback listener class. A generated primary key value is available when this callback occurs only for UUID , TABLE , or SEQUENCE primary key generation. For IDENTITY primary key generation, the generated primary key is not available when this callback occurs

FROM clause (JPQL / Criteria API)

, HAVING, IN, INDEX, INNER, IS, JOIN, KEY , LEADING, LEFT, LENGTH, LIKE,LOCATE, LOWER, MAX, MEMBER, MIN

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

processing, etc.) but in a way that makes development easier and applications faster. ObjectDB Database Key

AnnotationRef jakarta.persistence.Table

. Note that it is not necessary to specify an index for a primary key , as the primary key index ... annotations and constraints 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

AnnotationRef jakarta.persistence.Entity

maps to a unique foreign key relationship (sometimes using a shared primary key ), a plain ... must have at least one field or property annotated Id or EmbeddedId holding the primary key of the entity. An entity class ... . An entity has a primary table, mapped using the Table annotation, and may have one or more secondary tables

AnnotationAttrRef jakarta.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

AnnotationRef jakarta.persistence.CollectionTable

key columns of the collection table which reference the primary table of the entity. The default ... ., the concatenation of the following: the name of the entity; " _ "; the name of the referenced primary key ... the generation of a foreign key constraint for the columns corresponding to the joinColumns element when table

EntityManager.getReference(entityClass,primaryKey) - JPA Method

class with the given primary key , whose state may be lazily fetched. If the requested instance does ... while the entity manager was open. Parameters: entityClass - entity class primaryKey - primary key Return ... denote an entity type or the second argument is not a valid type for that entity's primary key or

AnnotationRef jakarta.persistence.Column

to only a single column. This constraint applies in addition to any constraint entailed by the primary key ... the column. If absent the column is assumed 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

AnnotationRef jakarta.persistence.OneToOne

of the owning side. A OneToOne association usually maps a unique foreign key relationship, either a foreign key column or columns with a unique constraint, or a relationship via a shared primary key . The JoinColumn annotation may be used to map the foreign key column or columns. Alternatively

AnnotationAttrRef jakarta.persistence.SecondaryTable.pkJoinColumns

JPA Annotation Attribute in jakarta.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

AnnotationAttrRef jakarta.persistence.MapKeyColumn.table

is for a OneToMany entity relationship using a foreign key mapping strategy, the name of the primary ... ) 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

AnnotationAttrRef jakarta.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

AnnotationAttrRef jakarta.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

AnnotationAttrRef jakarta.persistence.Table.indexes

JPA Annotation Attribute in jakarta.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 is created automatically. Since: JPA 2.1

AnnotationRef jakarta.persistence.OrderBy

element is not specified for an entity association, ordering by the primary key of the associated ... is not specified, ordering by the primary key of the associated entity is assumed. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.CollectionTable.joinColumns

JPA Annotation Attribute in jakarta.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

AnnotationAttrRef jakarta.persistence.SequenceGenerator.name

JPA Annotation Attribute in jakarta.persistence.SequenceGenerator String name default "" (Optional) A unique generator name that can be referenced by one or more classes to be the generator for primary key values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key attribute. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.TableGenerator.indexes

JPA Annotation Attribute in jakarta.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 is created automatically. Since: JPA 2.1

EnumConstRef jakarta.persistence.GenerationType.UUID

JPA Enum Constant in jakarta.persistence.GenerationType UUID Indicates that the persistence provider must assign primary keys for the entity by generating an RFC 4122 Universally Unique IDentifier. May be used to generate primary keys of type java.util.UUID or String. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.TableGenerator.pkColumnValue

JPA Annotation Attribute in jakarta.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

InterfaceRef jakarta.persistence.Cache

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

AnnotationRef jakarta.persistence.Index

to specify an index for a primary key , as the primary key has a unique constraint with an index created

EnumConstRef jakarta.persistence.GenerationType.TABLE

JPA Enum Constant in jakarta.persistence.GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. May be used to generate primary keys of type Long, Integer, long , or int . Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.GeneratedValue.strategy

JPA Annotation Attribute in jakarta.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

EnumConstRef jakarta.persistence.GenerationType.AUTO

JPA Enum Constant in jakarta.persistence.GenerationType AUTO Indicates that the persistence provider should pick an appropriate strategy for the particular database. For a primary key of type java.util.UUID or String, this is equivalent to UUID . For a primary key of type Long, Integer, long , or

EnumConstRef jakarta.persistence.GenerationType.IDENTITY

JPA Enum Constant in jakarta.persistence.GenerationType IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. May be used to generate primary keys of type Long, Integer, long , or int . Since: JPA 1.0

EnumConstRef jakarta.persistence.GenerationType.SEQUENCE

JPA Enum Constant in jakarta.persistence.GenerationType SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence. May be used to generate primary keys of type Long, Integer, long , or int . Since: JPA 1.0

Which API should I use - JPA or JDO?

the primary API, and if necessary, switch to JDO as a secondary API for special additional features