ObjectDB Database Search

151-200 of 200 results

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

EmbeddedId with Generated field value

both solutions I expected I could get a generated value for the field uid by simply adding the documented

Failed to read the value of field ... using reflection

Hello, we got following exception. Can you explain me, what is the reason of this exception?   Caused by: com.objectdb.o.UserException: Failed to read the value of field field com.btc.ep.expression.formula.bl.dmos.Valuation.variableSettings using reflection at com.objectdb.o.MSG.a(MSG.java:77

NullPointerException while setting a new property value

to entities from 2 threads: 1. Creating a list of entities, default values are set from imported file 2

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

remove & persist in same transaction => Attempt to reuse an existing primary key value

to reuse an existing primary key value (Persist_Remove_Persist$EntityA:1)   We created a small

Make Column values Case insensitive

How do make table column values to case insensitive in object db 2.8.1 version? objdbuser This is currently not supported. A possible workaround is to keep a case-insensitive copy of the relevaant string in a separate field. e.g. in a lowercase format. support Support

Failed to read the value of field using reflection

I have recently encountered an issue with reading objects: Exception: com.objectdb.o.UserException Message: Failed to read the value of field field Character.stats using reflection Stack Trace: com.objectdb.o.MSG.d(MSG.java:75) com.objectdb.o.UMR.P(UMR.java:934) com.objectdb.o.UMR.B(UMR.java:609

Query with MEMBER OF on hash map values

Hello, we want to execute following query: SELECT tc FROM TC tc WHERE ?1 MEMBER OF tc.testMacros. values () But we get an internal ObjectDB exception. It is possible to implement a query for this case at all?   @Entity public class TC { @OneToMany Map testMacros = new HashMap(); }   btc_es

Search through collection for value using index

Search through collection for value using index

removed objects stay with null field values in the reference

removed objects stay with null field values in the reference

GWT RPC is throwing serialization exception when I have object db date value

GWT RPC is throwing serialization exception when I have object db date value

Failed to read the value of field using reflection (error 363)

Failed to read the value of field using reflection (error 363)

Query fails with numerical values > 2^31

Query fails with numerical values > 2^31

Merge throw exception "Attempt to reuse an existing primary key value"

Hi, if Id = 0 I got javax.persistence.EntityExistsException: com.objectdb.o.UserException: Attempt to reuse an existing primary key value (ru.dz.train.test.ZeroIdTest$MyEntity:0)   if Id=1 no exception code : import javax.persistence.*; public class ZeroIdTest {     public

jakarta.persistence.MapKeyJoinColumn

and the default values apply. Example 1: @Entity public class Company { @Id int id; ... @OneToMany ... the collection table for the map value . If the join is for a map key for a ManyToMany entity ... , the foreign key column for the map key is in the table of the entity that is the value of the map. Default

jakarta.persistence.MapKeyColumn

is for an element collection, the map key column is in the collection table for the map value ... that is the value of the map. Defaults to the concatenation of the following: the name of the referencing ... is for an element collection, the name of the collection table for the map value . If the map key

jakarta.persistence.EnumType

available options for mapping enumerated types. The values of this enumeration specify ... . The ordinal value of an enum instance with no EnumeratedValue field is the value of its Enum#ordinal ... a string. The string value of an enum instance with no EnumeratedValue field is the value of its Enum#name

jakarta.persistence.AttributeOverride

collection whose key and/or value is an embeddable class. When AttributeOverride is applied to a map, " key. " or " value . " must be used to prefix the name of the attribute that is being overridden in order to specify it as part of the map key or map value . To override mappings at multiple levels

jakarta.persistence.AttributeConverter

, since, with the aid of the converter, its values can be represented as instances of a basic type. A converter ... descriptor. The value of autoApply determines if the converter is automatically applied to persistent fields ... Public Instance Methods Y convertToDatabaseColumn ( X attribute ) Converts the value stored in

jakarta.persistence.CollectionTable

of basic or embeddable types. Applied to the collection- valued field or property. By default ... from the attributes of the embeddable class or from the basic type according to the default values ... of the collection- valued field or property. In the case of an embeddable class, the column names are derived

jakarta.persistence.metamodel.PluralAttribute.CollectionType

, Serializable Since: Jakarta Persistence (JPA) 1.0 Enum Constants COLLECTION Collection- valued attribute Since: Jakarta Persistence (JPA) 1.0 LIST List- valued attribute Since: Jakarta Persistence (JPA) 1.0 MAP Map- valued attribute Since: Jakarta Persistence (JPA) 1.0 SET Set- valued attribute Since: Jakarta

jakarta.persistence.criteria.CriteriaQuery

query results are eliminated. A true value will cause duplicates to be eliminated. A false value ... AbstractQuery.distinct Parameters: distinct - boolean value specifying whether duplicate results ... method. An argument to the multiselect method must not be a tuple- or array- valued compound selection

jakarta.persistence.SequenceGenerator

) Since: Jakarta Persistence (JPA) 1.0 The Auto Generated Values article explains how to use SequenceGenerator ... more classes to be the generator for primary key values . Defaults to the name of the entity ... which to obtain primary key values . Defaults to a provider-chosen value . Default: "" Since: Jakarta

jakarta.persistence.OrderBy

: Annotation Target: Method, Field Specifies the ordering of the elements of a collection- valued ... of the value ordering element is an orderby_list , as follows: orderby_list ::= orderby_item ... attribute. The value of each identifier used with the dot notation is the name of the respective

jakarta.persistence.PessimisticLockScope

, RefreshOption , LockOption , Constable , Comparable , Serializable Defines the values of the jakarta.persistence ... .lock.scope is specified with a value of PessimisticLockScope#EXTENDED . The state of entities ... Persistence (JPA) 1.0 NORMAL This value defines the default behavior for pessimistic locking

jakarta.persistence.ManyToMany

: Annotation Target: Method, Field Specifies a many- valued association with many-to-many multiplicity ... the relationship attribute within the embedded attribute. The value of each identifier used with the dot ... of the association. Optional only if the collection- valued relationship property is defined using Java

jakarta.persistence.criteria.Nulls

Specifies the precedence of null values within query result sets. See Also: CriteriaBuilder.asc ... Constants FIRST Null values occur at the beginning of the result set. Since: Jakarta Persistence (JPA) 1.0 LAST Null values occur at the end of the result set. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.MapAttribute

: - The type the represented Map belongs to - The type of the value of the represented Map - The type ... of the type MapAttribute represent persistent java.util.Map - valued attributes. Since: Jakarta ... isCollection () Is the attribute collection- valued (represents a Collection , Set , List , or Map

jakarta.persistence.criteria.Fetch

fetch ( SingularAttribute attribute ) Create a fetch join to the specified single- valued attribute ... attribute , JoinType jt ) Create a fetch join to the specified single- valued attribute using the given ... attribute ) Create a fetch join to the specified collection- valued attribute using an inner join

jakarta.persistence.criteria.FetchParent

( SingularAttribute attribute ) Create a fetch join to the specified single- valued attribute using an inner ... to the specified single- valued attribute using the given join type. Parameters: jt - join type ... Fetch fetch ( PluralAttribute attribute ) Create a fetch join to the specified collection- valued

jakarta.persistence.AssociationOverride

. The value of each identifier used with the dot notation is the name of the respective embedded field or ... a map value , " value . " must be used to prefix the name of the attribute within the embeddable class that is being overridden in order to specify it as part of the map value . If the relationship

jakarta.persistence.Column

field. If no Column annotation is explicitly specified, the default values apply. Example 1: @Column ... of exact numeric type. The default value 0 indicates that a provider-determined precision ... of exact numeric type. The default value 0 indicates that a provider-determined scale should be inferred

jakarta.persistence.Persistence

. These properties may include properties to control schema generation. The values of these properties override any values that may have been configured elsewhere. Returns: the factory that creates ... ; these may also contain provider-specific properties. The values of these properties override any values

jakarta.persistence.ForeignKey

provider. The ConstraintMode value is used to specify whether foreign key constraints ... ] When the ConstraintMode value is CONSTRAINT , but the foreignKeyDefinition element is not specified, the provider ... : "" Since: Jakarta Persistence (JPA) 1.0 ConstraintMode value (Optional) Used to specify whether a foreign key

jakarta.persistence.LockModeType

that row and obtains the modified value , before T1 has committed or rolled back. Transaction T2 ... a row. Another transaction T2 then reads that row and obtains the modified value , before T1 ... (JPA) 1.0 Synthetic Public Static Methods: values (), valueOf(String) Additional JDK methods inherited

jakarta.persistence.NamedAttributeNode

. See Also: NamedEntityGraph NamedSubgraph Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String value ... -specific attributes. Superclass subgraph entries will be merged into subclass subgraphs. The value ... subclass subgraphs. The value of this element is the name of the key subgraph as specified by

jakarta.persistence.MapsId

a simple primary key of the parent entity. The value element specifies the attribute within a composite key ... Java type as the primary key of the entity referenced by the relationship, the value attribute is not ... value (Optional) The name of the attribute within the composite key to which the relationship

jakarta.persistence.EnumeratedValue

of database column values for an enumerated mapping. The annotated field must be declared final ... . The annotated field must not be null, and must hold a distinct value for each value of the enum type

jakarta.persistence.metamodel.ListAttribute

java.util.List - valued attributes. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class ... () Is the attribute collection- valued (represents a Collection , Set , List , or Map ). Inherited from Attribute Returns: boolean indicating whether the attribute is collection- valued . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.CollectionAttribute

CollectionAttribute represent persistent java.util.Collection - valued attributes. Since: Jakarta Persistence (JPA) 2.0 ... ) 1.0 boolean isCollection () Is the attribute collection- valued (represents a Collection , Set , List , or Map ). Inherited from Attribute Returns: boolean indicating whether the attribute is collection- valued . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.SetAttribute

.util.Set - valued attributes. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class ... () Is the attribute collection- valued (represents a Collection , Set , List , or Map ). Inherited from Attribute Returns: boolean indicating whether the attribute is collection- valued . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.SingularAttribute

- valued properties or fields. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class ... () Is the attribute collection- valued (represents a Collection , Set , List , or Map ). Inherited from Attribute Returns: boolean indicating whether the attribute is collection- valued . Since: Jakarta

jakarta.persistence.metamodel.PluralAttribute

PluralAttribute represent persistent collection- valued attributes. Since: Jakarta Persistence (JPA ... - valued (represents a Collection , Set , List , or Map ). Inherited from Attribute Returns: boolean indicating whether the attribute is collection- valued . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery

results are eliminated. A true value will cause duplicates to be eliminated. A false value ... . Parameters: distinct - boolean value specifying whether duplicate results must be eliminated from

jakarta.persistence.Basic

annotation is not specified for such a field or property, the default values of the Basic annotation ... FetchType fetch (Optional) Whether the value of the field or property should be lazily loaded or ... Persistence (JPA) 1.0 boolean optional (Optional) Specifies whether the value of the field or property

jakarta.persistence.Cacheable

, and when the value of the persistence.xml caching element is SharedCacheMode.ENABLE_SELECTIVE or SharedCacheMode.DISABLE_SELECTIVE . The value of the Cacheable annotation is inherited by subclasses ... ) Entity Cache article explains how to use Cacheable . Annotation Elements boolean value (Optional

jakarta.persistence.OneToOne

: Annotation Target: Method, Field Specifies a single- valued association to another entity class ... the mappedBy element to indicate the relationship attribute within the embedded attribute. The value ... primary key values . // On Employee class: @Entity public class Employee { @Id Integer id; @OneToOne

jakarta.persistence.OneToMany

: Annotation Target: Method, Field Specifies a many- valued association with one-to-many multiplicity ... .util.Map , the cascade element and the orphanRemoval element apply to the map value . Example 1 ... collection is a java.util.Map , the cascade element applies to the map value . Default

jakarta.persistence.PersistenceConfiguration

PersistenceConfiguration property ( String name , Object value ) Set a property of this persistence unit. Parameters: name - the property name value - the property value Returns: this configuration. Since: Jakarta