ObjectDB Database Search
51-100 of 200 resultsOptimistic 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 | |
JPA Criteria API Queries , ...) Collection expressions ( isEmpty , isNotEmpty , isMember , isNotMember , size ) Comparison expressions | |
Managing JPA Entities an EntityManager . Persistence context The persistence context is the collection of all managed objects | |
JPA Primary Key contiguously and can be collected by accessing a minimum number of database pages. On the other hand | |
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.criteria.Path or compound attribute path from a bound type or collection , and is a "primitive" expression ... collection ) Create a path corresponding to the referenced collection -valued attribute. Parameters: collection - collection -valued attribute Returns: expression corresponding to the referenced attribute | |
jakarta.persistence.metamodel.PluralAttribute: - The type the represented collection belongs to - The element type of the represented collection - The type of the represented collection Super Interfaces: Attribute , Bindable Instances of the type PluralAttribute represent persistent collection -valued attributes. Since: Jakarta Persistence (JPA | |
jakarta.persistence.metamodel.CollectionAttribute Parameters: - The type the represented Collection belongs to - The element type of the represented Collection Super Interfaces: PluralAttribute , Attribute , Bindable Instances of the type CollectionAttribute represent persistent java.util. Collection -valued attributes. Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.metamodel.IdentifiableType CollectionAttribute getCollection ( String name , Class elementType ) Return the Collection -valued attribute ... the Collection -valued attribute of the managed type that corresponds to the specified name. Inherited from ... the Collection -valued attribute declared by the managed type that corresponds to the specified name | |
jakarta.persistence.metamodel.EntityType CollectionAttribute getCollection ( String name , Class elementType ) Return the Collection -valued ... ) Return the Collection -valued attribute of the managed type that corresponds to the specified name ... elementType ) Return the Collection -valued attribute declared by the managed type that corresponds | |
jakarta.persistence.metamodel.ManagedType CollectionAttribute getCollection ( String name , Class elementType ) Return the Collection -valued attribute ... Persistence (JPA) 1.0 CollectionAttribute getCollection ( String name ) Return the Collection -valued ... the Collection -valued attribute declared by the managed type that corresponds to the specified name | |
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 ... . 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 type. Since: Jakarta Persistence (JPA) 1.0 CollectionType getCollectionType () Return the collection type. Inherited from PluralAttribute Returns: collection type. Since: Jakarta Persistence (JPA) 1.0 ... Type getElementType () Return the type representing the element type of the collection . Inherited | |
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 ... 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 ... the element type of the collection . Inherited from PluralAttribute Returns: element type ... isCollection () Is the attribute collection -valued (represents a Collection , Set , List , or Map | |
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 java | |
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: 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: predicate ... ) 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 graphs | |
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 |