About object

forum_thread

finding post-persist pre-commit objects

Hi, I'm wondering if there is a way to have post-persisted, pre-committed, objects show up in queries? ie: the object has been persisted, but not yet committed. Dave   ... pre-committed, objects show up in queries? ie: the object has been persisted, but not yet committed. Dave   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Optimistic lock failed : object has version .. instead of ..

I do basic storage and retrieval of Record class. When I stress the retrieval/storage with Apache JMeter sometimes (at some requests) I get this exception.   [ObjectDB 2.5.0] javax.persistence.OptimisticLockException Optimistic lock failed for object entities.Record#'1405/838/2011/121' (object has version 125 instead of 126) (error 673) at com.objectdb.jpa.EMImpl.beforeCompletion(EMImpl.java:381) ... Thank you! ... lock failed for object entities.Record#'1405/838/2011/121' (object has version 125 instead of 126) (error 673) at ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Does aggregate function "greatest" work on entity objects?

do not come to the function "compareTo" @Entity public class ChatHistoryItem extends AbstractObject implements Comparable {     private static final long serialVersionUID = 1L; ... Override public int compareTo ( Object t ) { ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Is it ok to put list or map of embeddable objects in entity ?

Hi, Is it ok to put list or map of embeddable objects in entity? I mean, for example : @Entity public class Entity_A {     (...)     @Embedded     List<Class_B> bList;     @Embedded     Map<String, Class_C> cMap; (...) } where Class_B and Class_C are annotated as @Embeddable ? In the examples, there is only situation where there is one single instance of embeddable class in entity. And what happens if I do operation like : ... for the collection or its elements - every time the entity object is stored previous content is automatically deleted. To see ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

persisting object with long[][] arrays of array

Hi, I have an object I am trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction().commit(); Here is the object: ... Hi, I have an object I am trying to persist (java) - It has several fields of type long[][]. ... it hangs on getTransaction().commit(); Here is the object: import java. io . Serializable ; import javax. ...

 
release

2.7.1

... 2.7.0 Extended maximum supported entity object size to nearly 2GB. Added a temporary system property to ... Fixed a bug in handling remove and persist of the same object in one transaction ( issue #1155 ). Fixed ...

 
forum_thread

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

Hi, First post here and exploring ObjectDB.  I have an class Person which has a HashMap<String, String> called 'pMap' as a persistable field.  I am able to create Person objects and persist them as expected. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
release

2.7.3

... a ClassCastException in query selection of embedded object and array fields. Fixed an  InternalException on ... 2.7.0 Extended maximum supported entity object size to nearly 2GB. Added a temporary system property to ...

 
forum_thread

Extra uninitialised entities spawned on merge()

In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List<Element> ownedElements, and Example is a subclass entity with a relationship @OneToOne Element child. ... detached entity. If the entity has a relationship to an object that has no persistent identity, the outcome of the merge operation is ... allow the managed copy to point to the non-persistent object, whereas others might thown an exception immediately. The merge() ...

 
forum_thread

Searching lists within objects

Hi everyone,  I've a problem with searching on lists. I'm uncertain as to what the best form is, so I've created a maven project with all the classes and a unit test showing my issue. Pretty much I want to search using cb.isMember passing an object. This however does NOT work. I'm uncertain how the database is doing its matching, but it looks to me like it matches using objectids, which means you can only match isMember if you have a database object. This does not help as I'm never going to have the real object at search time. ... Pretty much I want to search using cb.isMember passing an object. This however does NOT work. I'm uncertain how the database is doing ... means you can only match isMember if you have a database object. This does not help as I'm never going to have the real object at ...