ObjectDB Database Search

101-150 of 200 results

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

Index on map key

Is there a way to create an Index with @Index on the key of a map? wua Andreas Wurm Indexes on map keys as well as queries on map keys are currently not supported. But as a workaround you can use a collection of embedded objects, as demonstrated below: package test; import java.util.*; import

Foreign key constraint issue

Hi, I'm trying to create two tables (Parent and Child) with a foreign key constraint from Child ... one specific case that foreign key constraint doesn't apply and I can't figure how to make it work ... want to remove all orphaned child entities (as with a foreign key constraint). Interestingly

Error opening database with ObjectDB Explorer when using composite key

Hi, When I use a composite key in an entity and fill this database with this entity, ObjectDB explorer throws me an error when opening this database saying something about an invalid ID class ... has been attached to this ticket. The code itself looks like this:   KEY : public class PersonId

ObjectDB JDO - foreign key constraints

Hi, I am new to both JDO and ObjectDB, and am struggeling to figure out how to define foreign key relationships. For instance, I have create two classes: @Entity public class Person implements ... ; Any help appreciated! ralfne Ralf Stefan Neumann ObjectDB doesn't enforce foreign key constraints

retrieve without key?

. i'm loading data from an external source. i use keys from that source. since i have a singleton i ... and can't see an option to retrieve an object w/o using a key . can this be done? duetto john cummings You can use a single result query . support Support

KEY() / VALUE() not recognized in JPQL??

Hi! Explorer says "unexpected token" on KEY (..: SELECT FROM individual.IndividualContact $1 LEFT OUTER JOIN $1.profile.title.name m WHERE ( KEY (m) = 'deu' AND VALUE(m) LIKE '%Dr%') profile = embedded entity title = referenced entity name = Map   thanks, Alex quasado Alexander Adam Yes

selecting objects that have a particular key/value in persistant HashMap

that the pMap field of some Person objects has the key /value pair "location'/'California'.  Can I

License Key on macOS Sequoia 15.6.1

License Key on macOS Sequoia 15.6.1

Should derived fields of an EmbeddedId be manually maintained by app code?

If I have an Entity which has a primary key which is derived and I am implementing it using ... an Entity with an EmbeddedId where the containing Entity has a simple Primary Key , and a case which shows an Entity whose container has a Primary Key which is partly a Primary Key . 2) I have kept the Entity

TemporalType injection with Calendar using JPA

an embedded object as a primary key , which has time fields which I have annotated with TemporalType ... =31,ZONE_OFFSET=0,DST_OFFSET=3600000] ]) as a primary key (error 691) at com.objectdb.jpa.EMImpl.find ... ] ]) as a primary key at com.objectdb.o.MSG.d(MSG.java:74) at com.objectdb.o.OBC.aF(OBC.java:745

AnnotationAttrRef jakarta.persistence.MapKeyColumn.unique

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

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

AnnotationAttrRef 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 specified at the table level. Since: JPA 1.0

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

AnnotationAttrRef jakarta.persistence.MapKeyJoinColumn.referencedColumnName

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

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

AnnotationAttrRef jakarta.persistence.MapsId.value

JPA Annotation Attribute in jakarta.persistence.MapsId String value default "" (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. Since: JPA 2.0

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Hello Object Db community :) I am using this wonderful library and I caught a strange exception while testing the "composite key " feature in JPA. Let's see what I am doing : @Entity public class ... be reproduced with a simple ( not embedded Id ) key with an enum type. Here is the code : package test

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

------------------- [1] Page #9 entry 0 has unexpected object format [2] Page #9 entry 0 ( key 'bjjl') has 75 ... ] Page #3 entry 0 has unexpected object format [2] Page #3 entry 0 ( key 'guest') has 11 extra bytes

DISTINCT key causing internal exception on 2.6.4.b10

I observed that on new ObjectDb v.2.6.4.b10 query below causes internal exception SELECT DISTINCT $1 FROM Pa3DictionaryItem $2 JOIN $2.values $1 WHERE ($2.namespace == 'com.anritsu.pa3.ttcn3' AND $2. key == 'TliEvent' AND $1 != '') Query above also worked fine on ObjectDb version 2.6.1.b06 Harman

AnnotationAttrRef jakarta.persistence.JoinTable.inverseJoinColumns

JPA Annotation Attribute in jakarta.persistence.JoinTable JoinColumn [] inverseJoinColumns default {} (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 defaults as for JoinColumn . Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.TableGenerator.name

JPA Annotation Attribute in jakarta.persistence.TableGenerator String name default "" (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 attribute. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Table.uniqueConstraints

and JoinColumn annotations and constraints entailed by primary key mappings. Defaults to no additional constraints. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.TableGenerator.pkColumnName

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

AnnotationAttrRef jakarta.persistence.JoinTable.joinColumns

JPA Annotation Attribute in jakarta.persistence.JoinTable JoinColumn [] joinColumns default {} (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 for JoinColumn . Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.PrimaryKeyJoinColumn.columnDefinition

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

AnnotationAttrRef jakarta.persistence.SecondaryTable.uniqueConstraints

specified by Column and JoinColumn annotations and constraints entailed by primary key mappings. Defaults to no additional constraints. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.SequenceGenerator.sequenceName

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

EntityManager.getReference(entity) - JPA Method

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 may be persistent or detached

AnnotationRef jakarta.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 are named the same in all tables. {@snippet : Since: JPA 1.0 Public Annotation Attributes

AnnotationAttrRef jakarta.persistence.TableGenerator.uniqueConstraints

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

AnnotationAttrRef jakarta.persistence.OrderBy.value

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

Cache.evict(cls,primaryKey) - JPA Method

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: JPA 2.0

Cache.contains(cls,primaryKey) - JPA Method

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 Return: boolean indicating whether the entity is in the cache Since: JPA 2.0

Cache.evict(cls,primaryKey) - JPA Method

JPA Method in javax.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: JPA 2.0

Cache.contains(cls,primaryKey) - JPA Method

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

AnnotationRef jakarta.persistence.ConstructorResult

detached state, depending on whether a primary key is retrieved for the constructed object. Example

AnnotationAttrRef jakarta.persistence.IdClass.value

JPA Annotation Attribute in jakarta.persistence.IdClass Class value default null 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: JPA 1.0

AnnotationAttrRef jakarta.persistence.GeneratedValue.generator

JPA Annotation Attribute in jakarta.persistence.GeneratedValue String generator default "" (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

AnnotationRef jakarta.persistence.PostPersist

JPA Annotation PostPersist Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Any generated primary key value

AnnotationRef jakarta.persistence.ForeignKey

JPA Annotation ForeignKey Implemented Interfaces: Annotation Specifies the handling of foreign key ... foreign key strategy is selected by the persistence provider. The ConstraintMode value is used to specify whether foreign key constraints should be generated. The syntax used in the foreignKeyDefinition

AnnotationAttrRef 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

AnnotationRef jakarta.persistence.Convert

is applied to the keys or values of the map, or to the specified attribute of the embeddable ... 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

AnnotationAttrRef jakarta.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. If the map key is for a ManyToMany entity relationship or for a OneToMany entity relationship using

again merger missing logs + objectdb exception

in a separate page and has a wrapper key that consists of the original primary key of the object ... ; ObjectProperty instances have nested wrappers, i.e. a section key wrapper that wraps another section key wrapper that wraps the original primary key . This is an unexpected state. Unfortunately

InternalException when using MEMBER OF on a large list in a query

that combine large objects with long primary keys . In such objects the keys may not be embedded in ... the exception - storing large objects with long primary keys is not very efficient, because non embeddable keys are slower. If possible, try to avoid primary keys longer than 32 bytes (in the test

InterfaceRef jakarta.persistence.metamodel.EmbeddableType

and Java key and value types. Parameters: name - the name of the represented attribute keyType - the key type of the represented attribute valueType - the value type of the represented attribute Return: declared MapAttribute of the given name and key and value types Throws: IllegalArgumentException

AnnotationRef jakarta.persistence.AssociationOverride

it as part of the map value. If the relationship mapping is a foreign key mapping, the joinColumns ... key constraint for the columns corresponding to the joinColumns element when table generation is in ... are specified, the behavior is undefined. If no foreign key annotation element is specified in either location