ObjectDB Database 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

Activation key causes database to not start

. We still cannot start ObjectDB if we add the activation key in objectdb.conf. This is the ObjectDB log ... .java:62) CK1000 Casper Kold Lund Unfortunately it seems that a wrong license key (for ObjectDB 1.x rather than for ObjectDB 2.x) was sent to you. Sorry about that. A new license key was sent to you now

Unexpected query token 'KEY'

.customProperties cp WHERE KEY (cp) = :propertyName AND VALUE(cp) = :propertyValue ORDER BY td.createdTimeMillis I get the "Unexpected query token ' KEY '" error. Is there another way to do this and I am just using ... with a collection of embedded objects. This will also enable defining indexes on the keys /values

jakarta.persistence.PostPersist

class. Any generated primary key value is available when this callback occurs. Since: Jakarta

jakarta.persistence.ConstructorResult

constructor results will be in either the new or detached state, depending on whether a primary key

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

jakarta.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 the primary key mapping and to constraints

jakarta.persistence.PrimaryKeyJoinColumn.foreignKey

(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. Default: @ForeignKey(PROVIDER_DEFAULT) Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.MapKeyJoinColumn.referencedColumnName

.) The same name as the primary key column of the referenced table. Default: "" Since: Jakarta Persistence (JPA) 1.0 ... Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyJoinColumn String referencedColumnName (Optional) The name of the column referenced by this foreign key column. The referenced column

jakarta.persistence.MapsId.value

Jakarta Persistence (JPA) Method in jakarta.persistence.MapsId String value (Optional) The name of the attribute within the composite key to which the relationship attribute corresponds. If not explicitly specified, the relationship maps the primary key of the entity. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.JoinColumn.table

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

jakarta.persistence.Convert

to the keys or values of the map, or to the specified attribute of the embeddable instances contained ... to specify conversion of a map key or value, " key " or "value" , respectively, must be used as the value of the attributeName element to specify that it is the map key or map value that is converted

jakarta.persistence.ForeignKey

: Annotation Specifies the handling of foreign key constraints when schema generation is in effect. If this annotation is not specified, a default foreign key strategy is selected by the persistence provider. The ConstraintMode value is used to specify whether foreign key constraints

jakarta.persistence.Cache.evict(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache void evict (    Class cls ,    Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.pkColumnName

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String pkColumnName (Optional) Name of the primary key column in the table. Defaults to a provider-chosen name. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator UniqueConstraint[] uniqueConstraints (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

jakarta.persistence.TableGenerator.name

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String name (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key

jakarta.persistence.Table.uniqueConstraints

and JoinColumn annotations and constraints entailed by primary key mappings. Defaults to no additional

jakarta.persistence.IdClass.value

Jakarta Persistence (JPA) Method in jakarta.persistence.IdClass Class value The primary key class, which must declare fields or properties with names and types that match the Id fields and properties of the annotated entity class. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GeneratedValue.generator

Jakarta Persistence (JPA) Method in jakarta.persistence.GeneratedValue String generator (Optional) The name of the primary key generator to use, as specified by the SequenceGenerator or TableGenerator annotation which declares the generator. The name defaults to the entity name of the entity in

jakarta.persistence.OrderBy.value

. If the ordering element is not specified, ordering by the primary key of the associated entity is assumed. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.JoinTable.joinColumns

Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable JoinColumn[] joinColumns (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

jakarta.persistence.JoinTable.inverseJoinColumns

Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable JoinColumn[] inverseJoinColumns (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

jakarta.persistence.SecondaryTable.uniqueConstraints

specified by Column and JoinColumn annotations and constraints entailed by primary key mappings. Defaults

jakarta.persistence.SequenceGenerator.sequenceName

Jakarta Persistence (JPA) Method in jakarta.persistence.SequenceGenerator String sequenceName (Optional) The name of the database sequence object from which to obtain primary key values. Defaults to a provider-chosen value. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.getReference(T)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T getReference (    T entity ) Obtain a reference to an instance of the entity class of the given object, with the same primary key as the given object, whose state may be lazily fetched. The given object

jakarta.persistence.PrimaryKeyJoinColumn.columnDefinition

Jakarta Persistence (JPA) Method in jakarta.persistence.PrimaryKeyJoinColumn String columnDefinition (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

jakarta.persistence.Cache.contains(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache boolean contains (    Class cls ,    Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache. Since: Jakarta Persistence (JPA) 1.0

SELECT clause (JPQL / Criteria API)

The ability to retrieve managed entities is a key advantage of JPQL. For example, the following query returns Country objects, which then become managed by the EntityManager instance em : TypedQuery query = em. createQuery ("SELECT c FROM Country c", Country.class); List results = query

FROM clause (JPQL / Criteria API)

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

JPA Metamodel Attributes

access. Represents an attribute typed as a java.util.Map , managing both keys and values

JPA Query Structure (JPQL / Criteria)

The syntax of the Jakarta Persistence Query Language (JPQL) is similar to SQL. This is a key advantage because SQL is a powerful query language, and many developers are already familiar with it. The main difference between SQL and JPQL is that SQL operates on relational database tables, while JPQL

Database Schema Evolution

other map type, as long as the keys and values are convertible (for example, from HashMap to TreeMap ). Any

JPA Relationships Annotations

in the target entity used as the map key for a Map-valued association. For more details, see the Persistent Classes chapter in the ObjectDB manual.

JPA Criteria FROM and JOIN

to both map keys and values. The parent interface of Root and Join , defining the common

ObjectDB Overview

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

jakarta.persistence.Graph

Subgraph addKeySubgraph ( Attribute attribute ) Add a node to the graph that corresponds to a map key ... related managed types. Parameters: attribute - attribute Returns: subgraph for the key attribute. Throws ... a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows

jakarta.persistence.EntityGraph

( Attribute attribute ) Add a node to the graph that corresponds to a map key that is a managed type ... . Inherited from Graph Parameters: attribute - attribute Returns: subgraph for the key attribute. Throws ... a node to the graph that corresponds to a map key that is a managed type with inheritance

jakarta.persistence.Subgraph

a node to the graph that corresponds to a map key that is a managed type. This allows ... : attribute - attribute Returns: subgraph for the key attribute. Throws: IllegalStateException ... that corresponds to a map key that is a managed type with inheritance. This allows for construction

jakarta.persistence.AssociationOverride

mapping is a foreign key mapping, the joinColumns element is used. If the relationship mapping uses a join ... mapping overridden to ADDR_ID foreign key public class PartTimeEmployee extends Employee ... must be specified if a foreign key mapping is used in the overriding of the mapping

jakarta.persistence.metamodel.IdentifiableType

that corresponds to the specified name and Java key and value types. Inherited from ManagedType Parameters: name - the name of the represented attribute keyType - the key type of the represented attribute ... name and key and value types. Throws: IllegalArgumentException - if attribute of the given name

jakarta.persistence.metamodel.EntityType

attribute declared by the managed type that corresponds to the specified name and Java key and value ... - the key type of the represented attribute valueType - the value type of the represented attribute Returns: declared MapAttribute of the given name and key and value types. Throws

jakarta.persistence.metamodel.ManagedType

attribute declared by the managed type that corresponds to the specified name and Java key and value types. Parameters: name - the name of the represented attribute keyType - the key type ... MapAttribute of the given name and key and value types. Throws: IllegalArgumentException - if attribute

jakarta.persistence.metamodel.EmbeddableType

type that corresponds to the specified name and Java key and value types. Inherited from ManagedType Parameters: name - the name of the represented attribute keyType - the key type of the represented ... of the given name and key and value types. Throws: IllegalArgumentException - if attribute of the given

jakarta.persistence.metamodel.MappedSuperclassType

declared by the managed type that corresponds to the specified name and Java key and value types. Inherited from ManagedType Parameters: name - the name of the represented attribute keyType - the key ... : declared MapAttribute of the given name and key and value types. Throws: IllegalArgumentException

jakarta.persistence.MapKeyJoinColumn.name

) The name of the foreign key column for the map key . The table in which it is found depends upon the context. 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 is for a map key for a ManyToMany entity relationship or

jakarta.persistence.MapKeyJoinColumns

Interfaces: Annotation Target: Method, Field Supports composite map keys that reference entities ... (JPA) 2.0 Annotation Elements MapKeyJoinColumn[] value (Required) The map key join columns that are used to map to the entity that is the map key . Since: Jakarta Persistence (JPA) 1.0 ForeignKey

jakarta.persistence.metamodel.MapAttribute

of the key of the represented Map Super Interfaces: PluralAttribute , Attribute , Bindable Instances ... . Since: Jakarta Persistence (JPA) 1.0 Class getKeyJavaType () Return the Java type of the map key . Returns: Java key type. Since: Jakarta Persistence (JPA) 1.0 Type getKeyType () Return the type

Eager Fetch of Map with Entities as Keys

Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals and hashCode methods of the keys are based on the key entity persistent content, since that content ... ;   MyKeyEntity key = new MyKeyEntity(" key ");         em