ObjectDB Database Search

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

Query to search for common elements in two separate collections.

I'm trying to work out the most efficient way to build a query that can compare two collections ... efficient way is to use some sort of hash function for the collections and to retrieve candidate collections by identical hash code. Candidate collections should then be further filtered by checking

Using Scala collections with ObjectDB

Hi, I cannot see that it is possible to make scala collection classes persistable ... of the scala. collection ._  api for it to work ? (http://www.scala-lang.org/docu/files/ collections -api/ collections .html)   /Peter   lsPeter Peter You are right - Scala collections

collection of embedded objects

1. In general, are there any restrictions of the use of @Embedded objects in collections , compared to @Entity ? 2. If you have a large nested collection of @Embedded objects, and you remove the parent @Entity , does the remove cascade through the whole collection ? 3. Is searching

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

PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException

I have a call to getObjectsById( Collection ,boolean) that is throwing a JDOException the first time ... why this might occur? We're using ObjectDB 2.2.4_02. The collection being passed in is a HashSet ... argument. What happens if getObjectsById() is called with an empty collection ? carr.onstott Carr

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

Hello, I'm doing some tests to choose the best collection fetch strategy. I have entities with many lazy collections and i don't want to load them all. (depends on context) In JPA / Hibernate world ... seems to be more efficient than only fetch required collections . Can you confirm my observations ? To finish, wake

No clue how to query with collection

;    Collection getAddresses(); } Now what I want to do is to select all available Customer Entites and ORDER them by the first Address - Item (if any) in the collection ... only.. thanks! Alex quasado Alexander Adam hi, okay I've decided that selecting the first item of a collection

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

Fetching Collections Puzzle

,   As posted above your collection should be initialized as soon as you try to get the children ... of the collection . This will only work if you are within a transaction. (I usually do not start a transaction ... join fetch n.children where ....." this will also fetch your collection . Basically you can use

PostUpdate collection null

Hello, I have an entity MyEntity with a collection attribute myCollection. I ... method, this collection is null. If I try to access the collection from the PreUpdate method, the collection is populated. The collection is eagerly fetched. public class MyEntity {    

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

Navigation to Collection Elements

Greetings ObjectDB team, Suppose I have a collection typed field (list/map/set...) in my  ... handling such expressions. Indexes are supported in handling more conventional  collection ... supported in queries, and anyway, collections are preferred over arrays when using JPA/JDO (and they might be even more efficient). support Support

Composite index support collection

Hello, is there any chance that you support composite indices with fields and collections combined in the future? We need such feature in our application and would be very happy to see it in ... (probably with a restriction of one collection ). support Support Hello, yes, one collection

Search through collection for value using index

I have an entity that contains a java collection of a Long id of user entities that can modify ... could do something besides a java collection if there is a better approach. SailBlue5 Michael Herman You can define an index on a collection field as explained in the manual , and the index

Eager Fetch is not stable for collection or map types?

Hi, thanks very much for your helpful software. The problem is the storage of  collection or ... is we confirm that the collection or map are stored successfully by using explorer tools when the JVM ... () of collection or map before closing the EntityManager, data can be retrieved successfully: 

Query over the keySet of a map field with collection parameter

It is possible to execute a query over a keySet of a map field with comparing to a collection parameter? Set values = new HashSet (); values.add("c2"); String query = // "SELECT e " + "FROM ... with a parameter which is a collection of strings. SELECT e FROM EntityParent e JOIN e . map key

Query to find object from element of a contained collection

I have an OrderData class, containing an OrderItemData collection , i would like to find OrderData elements by OrderData.items.itemId. I cant get a proper query with MEMBER OF or IN. Does ... addition, replace the ordinary array with a collection (e.g. ArrayList ). You may also need to use

Navigation through Path to evaluate collection

Hello, I need to evaluate a field ("identifier") which is situated in a collection , within an entity. As stated in the documentation it is not possible to navigate there with the dot operator since its a collection . Is it there a way to evaluate this field? Here is the query, the entity

jakarta.persistence.metamodel.EmbeddableType

elementType ) Return the Collection -valued attribute of the managed type that corresponds ... CollectionAttribute getCollection ( String name ) Return the Collection -valued attribute of the managed type ... getDeclaredCollection ( String name , Class elementType ) Return the Collection -valued attribute declared by

jakarta.persistence.metamodel.MappedSuperclassType

CollectionAttribute getCollection ( String name , Class elementType ) Return the Collection -valued ... the Collection -valued attribute of the managed type that corresponds to the specified name. Inherited ... ) Return the Collection -valued attribute declared by the managed type that corresponds to the specified

jakarta.persistence.CollectionTable

Interfaces: Annotation Target: Method, Field Specifies the table that is used for the mapping of collections of basic or embeddable types. Applied to the collection -valued field or property. By default, the columns of the collection table that correspond to the embeddable class or basic type are derived

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.criteria.Subquery

collection join object correlated to a collection join object of the enclosing query. Parameters ... for membership. Since: Jakarta Persistence (JPA) 1.0 Predicate in ( Collection values ) Create a predicate to test whether the expression is a member of the collection . Inherited from Expression Parameters: values

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.metamodel.ListAttribute

. Since: Jakarta Persistence (JPA) 1.0 CollectionType getCollectionType () Return the collection type. Inherited from PluralAttribute Returns: collection type. Since: Jakarta Persistence (JPA) 1.0 ManagedType ... getElementType () Return the type representing the element type of the collection . Inherited from

jakarta.persistence.metamodel.SetAttribute

. Since: Jakarta Persistence (JPA) 1.0 CollectionType getCollectionType () Return the collection type. Inherited from PluralAttribute Returns: collection type. Since: Jakarta Persistence (JPA) 1.0 ManagedType ... getElementType () Return the type representing the element type of the collection . Inherited from

jakarta.persistence.metamodel.MapAttribute

getCollectionType () Return the collection type. Inherited from PluralAttribute Returns: collection type ... type of the collection . Inherited from PluralAttribute Returns: element type. Since: Jakarta ... to an association. Since: Jakarta Persistence (JPA) 1.0 boolean isCollection () Is the attribute collection -valued

jakarta.persistence.OneToMany

. If the collection is defined using generics to specify the element type, the associated target entity ... within an embeddable class contained within an entity class to specify a relationship to a collection of entities ... field or property of the entity that is the owner of the relationship. When the collection is a Map

jakarta.persistence.OrderBy

: Annotation Target: Method, Field Specifies the ordering of the elements of a collection -valued association or element collection at the point when the association or collection is retrieved. The syntax ... embedded field or property. The OrderBy annotation may be applied to an element collection . When OrderBy

jakarta.persistence.PessimisticLockScope

In addition to the locking behavior specified for NORMAL , element collections and relationships ... such a relationship or element collection generally locks only the rows in the join table or collection table for that relationship or collection . This means that phantoms are possible. Since: Jakarta

jakarta.persistence.criteria.Predicate

against Returns: predicate testing for membership. Since: Jakarta Persistence (JPA) 1.0 Predicate in ( Collection values ) Create a predicate to test whether the expression is a member of the collection . Inherited from Expression Parameters: values - collection of values to be tested against Returns: predicate

jakarta.persistence.criteria.ParameterExpression

Persistence (JPA) 1.0 Predicate in ( Collection values ) Create a predicate to test whether the expression is a member of the collection . Inherited from Expression Parameters: values - collection ... is a member of the collection . Inherited from Expression Parameters: values - expression corresponding

jakarta.persistence.criteria.CriteriaBuilder.Case

( Collection values ) Create a predicate to test whether the expression is a member of the collection . Inherited from Expression Parameters: values - collection of values to be tested against Returns ... ) Create a predicate to test whether the expression is a member of the collection . Inherited from

jakarta.persistence.criteria.CriteriaBuilder.In

. Since: Jakarta Persistence (JPA) 1.0 Predicate in ( Collection values ) Create a predicate to test whether the expression is a member of the collection . Inherited from Expression Parameters: values - collection ... is a member of the collection . Inherited from Expression Parameters: values - expression corresponding

jakarta.persistence.criteria.CriteriaBuilder.Coalesce

( Collection values ) Create a predicate to test whether the expression is a member of the collection . Inherited from Expression Parameters: values - collection of values to be tested against Returns ... ) Create a predicate to test whether the expression is a member of the collection . Inherited from

jakarta.persistence.criteria.Expression

: predicate testing for membership. Since: Jakarta Persistence (JPA) 1.0 Predicate in ( Collection values ) Create a predicate to test whether the expression is a member of the collection . Parameters: values - collection of values to be tested against Returns: predicate testing for membership

jakarta.persistence.criteria.CriteriaBuilder.SimpleCase

. Since: Jakarta Persistence (JPA) 1.0 Predicate in ( Collection values ) Create a predicate to test whether the expression is a member of the collection . Inherited from Expression Parameters: values - collection of values to be tested against Returns: predicate testing for membership. Since: Jakarta

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

jakarta.persistence.Subgraph

addElementSubgraph ( PluralAttribute attribute ) Add a node to the graph that corresponds to a collection element ... that corresponds to a collection element that is a managed type. This allows for construction of multi-node ... attributeName , Class type ) Add a node to the graph that corresponds to a collection element

ObjectDB Server not able to handle large collections

We've tried to do a migration in large collection which failed with the following exception in ... Due to the size of that collection the containing entity object exceeds the maximum supported size ... . support Support In the collection which we got from the DB query and failed to iterate in the client

Collection update does not increase entity version and is not persisted

Hello, I found a bug when adding elements to a collection of Entities: Event { Collection ... Markus Ritter Your test case demonstrates an issue in tracking changes to a collection in an object of an old schema, in which the collection was not exist yet (as of changing attachment to attachments

Tracking changes to new collections (in enhancement mode) after flush

, relying on automatic invocation of change events, including in embedded collections . We should check how this is implemented for nested collections . Note that this structure of a List as a value in a Map ... , which helped to find the bug. Actually the issue is not related to nested collections

JPQL support for mapped by (inverse) collections

As discussed and demonstrated in this forum thread , collection operators and methods (IS EMPTY, SIZE, MEMBER OF, IN) are currently not supported for mapped by (inverse) collections . These operations are supported for direct (not mapped by) collections . Navigation and JOIN is supported

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