ObjectDB Database Search

1-50 of 64 results

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many ... the increment of the version of entity E when entities are added to or removed from the collection ... Farid Oudjane If it is a bidirectional relationship that is owned by the entities in the collection

Custom collection types

Hi   In our project in few places there are used collections from emf framework eg EcoreEMap ... , nevertheless it causes some questions. I checked that i can easily change the type of collection between ... of this classes but only their content so I suppose that you treat collections some how differently. Can i

Nested Collection Query

; How do I check if a particular member exist in one of the group? snoopydoghk Ka Leung Nesting a collection directly in another collection , although supported by ObjectDB, is not valid in JPA. Accordingly ... ) but it wouldn't be efficient. The recommended solution is avoid collections of collections , and instead wrap

Multiple Collection Fields not update correctly

  v2.8.8_2 I have an entity that has 2 collection fields: @OneToMany(fetch = FetchType.EAGER)      Collection position;      @OneToMany(fetch = FetchType.EAGER)      Collection rotation ;   Now if I persist them so the values are: position

LEFT JOIN FETCH over empty embedded collection returns no results

to my inquiry a few months ago. However, I have run into one problem: if an embedded collection is empty, but I attempt to LEFT JOIN FETCH all the members of a collection within a (non-existent) member of the first collection , the result of the overall query is an empty set. To use the example from

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER

NontransactionalWrite error using Collections.sort .

Hi, i started to use ObjectDB today and i'm having problem using command  Collections .sort in persisted object.  Attempt to modify an object with no active transaction when NontransactionalWrite is disabled: br.ufpa.linc.MetriX.api.model.Interface#105 (error 635)   I don't want

JPA Entity Fields

: @OneToOne , @ManyToOne : For references to entity types. @OneToMany , @ManyToMany : For collections and maps ... . Inverse fields are essential for collection fields when using ORM JPA implementations, but not ... when you manage very large collections that change often. This is because a change in the inverse

SELECT clause (JPQL / Criteria API)

only single-valued path expressions in the SELECT clause. Collection and map fields cannot be included ... (for example, an entity class) or a lightweight "transfer" class that is used only for collecting

Storing JPA Entities

operations are automatically cascaded to entities that are referenced by that field. A collection field

jakarta.persistence.Convert

may be applied to: a basic attribute, or a collection attribute of any type other than java.util.Map , in which case the converter is applied to the elements of the collection . In these cases ... attribute , a collection attribute whose element type is an embeddable type, in which case the converter

jakarta.persistence.MapKeyJoinColumn

key join column is in the collection table, join table, or table of the target entity that is used ... 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

jakarta.persistence.ElementCollection

Interfaces: Annotation Target: Method, Field Declares a collection of instances of a basic type or embeddable class . Must be specified if the collection is to be mapped by means of a collection table ... of the collection . This element is optional only if the collection field or property is defined using Java

jakarta.persistence.JoinColumn

collection . If the JoinColumn annotation itself is defaulted, a single join column is assumed ... is for an ElementCollection , the foreign key is in a collection table. Default (only applies if a single join column ... is for an element collection , the join column name is formed as the concatenation of the following

jakarta.persistence.Graph

to a collection element that is a managed type. This allows for construction of multi-node entity graphs ... to a collection element that is a managed type. This allows for construction of multi-node entity ... ) Add a node to the graph that corresponds to a collection element that is a managed type. This allows

jakarta.persistence.MapKeyColumn

is for an element collection , the map key column is in the collection table for the map value ... is for an element collection , the name of the collection table for the map value. If the map key

jakarta.persistence.ManyToMany

to specify a relationship to a collection of entities. If the relationship is bidirectional and the entity ... of the association. Optional only if the collection -valued relationship property is defined using Java generics. Must be specified otherwise. Defaults to the parameterized type of the collection when defined

jakarta.persistence.EntityGraph

that corresponds to a collection element that is a managed type. This allows for construction of multi-node ... a node to the graph that corresponds to a collection element that is a managed type. This allows ... to a collection element that is a managed type. This allows for construction of multi-node entity graphs

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

Hello! When the JPA entities are not enhanced the removal of an entry from a @OneToMany collection ... you for this report. It represents an issue with non enhanced classes, but it is not related to @OneToMany collection ... . support Support Hello, I have tried version 2.6.0_04. The problem with the @OneToMany collection

jakarta.persistence.Entity

, an element collection usually maps to a separate collection table , a many-to-one association usually maps

jakarta.persistence.metamodel.Attribute.isCollection()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Attribute boolean isCollection() Is the attribute collection -valued (represents a Collection , Set , List , or Map ). Returns: boolean indicating whether the attribute is collection -valued. Since: Jakarta Persistence (JPA) 1.0

Cascading makeTransient

be garbage- collected even after the PersistenceManager is closed and they are no longer needed from ... collecting of A instances (the reference com.objectdb.o.ENT is less important since after making ... ). The direct reference was added in version 2.6.2 in order to prevent garbage collecting

[ODB1] Chapter 6 - Persistent Objects

can become persistent, either by multiple calls to makePersistent( ... ) , or by passing a collection or array ... . The makePersistentAll( ... ) method stores all the elements in the specified collection or array in the database, but not the collection or array itself (unlike passing a collection to Utilities.bind

jakarta.persistence.metamodel.ManagedType.getPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getPluralAttributes() Return all multi-valued attributes ( Collection -, Set-, List-, and Map-valued attributes ... : Collection -, Set-, List-, and Map-valued attributes. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getDeclaredPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getDeclaredPluralAttributes() Return all multi-valued attributes ( Collection -, Set-, List-, and Map-valued ... attributes. Returns: declared Collection -, Set-, List-, and Map-valued attributes. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.PluralAttribute.getCollectionType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.PluralAttribute CollectionType getCollectionType() Return the collection type. Returns: collection type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CollectionJoin.getModel()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CollectionJoin CollectionAttribute getModel() Return the metamodel representation for the collection attribute. Returns: metamodel type representing the Collection that is the target of the join. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Lob

conjunction with the Basic annotation or with the ElementCollection annotation when the element collection

jakarta.persistence.MapKeyClass

one of the collection -valued relationship annotations ( OneToMany or ManyToMany ). The MapKey

jakarta.persistence.MapKeyEnumerated

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyEnumerated Implemented Interfaces: Annotation Target: Method, Field Specifies the enum type for a map key whose basic type is an enumerated type. The MapKeyEnumerated annotation can be applied to an element collection or

jakarta.persistence.ManyToOne

= "jobInfo.pm") Collection manages; } Since: Jakarta Persistence (JPA) 1.0 Annotation Elements Class

jakarta.persistence.MapKeyTemporal

. The MapKeyTemporal annotation can be applied to an element collection or relationship of type java.util

jakarta.persistence.Enumerated

in conjunction with the ElementCollection annotation when the element type of the collection

Explorer in 2.3

. Then at the bottom of the table or tree, have a link to fetch the next N. This should also apply to collections ... , but they may contain collections (explicit or derived) with a large number of elements. Again, most likely I'm ... which returns a single object. Or I have a field which is an explicit collection . Then I could enter

jakarta.persistence.metamodel.ManagedType.getCollection(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType CollectionAttribute getCollection (    String name ) Return the Collection -valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute

jakarta.persistence.metamodel.ManagedType.getDeclaredCollection(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType CollectionAttribute getDeclaredCollection (    String name ) Return the Collection -valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name

jakarta.persistence.metamodel.PluralAttribute.getElementType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.PluralAttribute Type getElementType() Return the type representing the element type of the collection . Returns: element type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getCollection(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType CollectionAttribute getCollection (    String name ,    Class elementType ) Return the Collection -valued attribute of the managed type that corresponds to the specified name and Java element type

jakarta.persistence.metamodel.ManagedType.getDeclaredCollection(String,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType CollectionAttribute getDeclaredCollection (    String name ,    Class elementType ) Return the Collection -valued attribute declared by the managed type that corresponds to the specified name and Java

Problem persisting a TreeSet field

  lorenz2304 Benjamin Lorenz Your definition of field children is invalid in JPA - Only collection interface types ( Collection , Set , List , Map ) should be used in persistent field definition ... are more limited. The order of elements in a mapped by (inverse) collection field is set by

"Failed to serialize instance" of Set problem

, mappedBy="parent") private Set abstractContainers = com.google.common. collect .Sets ... of com.google.common. collect .Sets$SetFromMap - field xxx.AbstractContainer.abstractContainers at com ... ObjectDB tries to serialize the collection using ordinary Java serialization ignoring the @OneToMany

Memory use in OneToMany relationships

. So imaging following setup: We have class A which holds an collection (List, Arrray ...) of class B ... a Collection of Class PicData.     Class PicData holds a byte[] (a picture) with some ... are not loaded yet. You can change this behaviour by specifying EAGER load (the default for collections

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

.anritsu.pa3.application.pa3datastore.AppLogSessionWriter.addDataKeys( Collection )    ... they can be released by the GC. Since all the persisted objects are in one large collection , aDataKeys , please check when this collection is released. It is also recommended to use always enhanced classes

Removing objects where ManyToMany relationships exist

the database intentionally. It depends. On retrieval - inverse (mapped by) collections ... , that with ORM (e.g. Hibernate, EclipseLink) collections are always implemented this way, i.e. a query is required in order to retrieve the content of a collection . support Support

Navigation and Parameters

.a IS MEMBER OF :y.b Thank You ! geekox86 Mohannad AlAwad You cannot navigate from a collection of objects ... . So if the parameter y is a collection the expression y.b is invalid. support Support

NullPointer when accessing persistent field

.iterator(ISP.java:126) at java.util. Collections $UnmodifiableCollection$1. ( Collections .java:1007) at java.util. Collections $UnmodifiableCollection.iterator( Collections .java:1006) at com.aqera.utilitymanager ... on accessing an inverse collection in an entity that has been garbage collected . Build 2.3.2_01 fixes

spuriously objectdb objects have null references

is detached (e.g. when the EntityManager is closed), ObjectDB replaces lazy loaded collections ... only for lazy collection fields? Could you please check the status of the entity objects and these collection ... it and in the case when we have the null collections it is not loaded

Query Execution Error

quasado Alexander Adam Aaah.. I can see.. I guess it is because of the collection access again jeeze ... quasado Alexander Adam Well ok, the null pointer occurrs now even without collection stuff which has worked just fine before!!! See this more simple query (no collection and the such) SELECT DISTINCT $1

Unexpected exception (Error 990) com.objectdb.o.InternalException

object after garbage collecting of the containing entity object may cause this exception ... above, but instead of a modified embedded object we have an embedded collection . Build 2.6.1_02 should fix this issue. If the exceptions in your application are due to modifying a persistent collection

combined index not used

additional statistic information. To benefit from these changes ObjectDB must collect that statistics ... . With build 2.7.6_08 and after collecting statistics as explained above the query execution