About or

  • Search for either of the two terms with uppercase OR. For example, cats OR dogs.
issue

Inefficient memory usage with very large transactions

When a large transaction is committed, ObjectDB increases some internal structures, i.e. allocates more memory, but from that point the structures remain big and the memory is not released even if all the next transactions are small. This problem was found during a heap analysis (see #9 in this forum thread), and was fixed in build 2.4.3_02, but the fix was removed later in build 2.4.3_03 because it caused other problems (#10, #11 in that forum thread). ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

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 : ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

NULL reference, how to remove

we have in our db these objects, how can we remove them (we did already a -cp Doctor):     ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

@PrePersist not working correctly

I have a method to calculate some values before persisting to the database. So i annotated it with @PrePersist. If i merge an object the annotated method get's called but all members are on their default values. I only tried it with new objects. So merge get's an object with id = null and therefore shoud behave like persist. (I always use merge) If i set a breakpoint before the em.merge(..) call the object is ok. Inside the @PrePersist method all fields are cleared.  ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

Deploying objectdb.jar to karaf 4.0.7 seems to fail

Hello, I'm evaluating ObjectDB for a future use in an OSGi project using Apache Karaf 4.0.7 (and later) as OSGi container. When I try to deploy the objectdb.jar file to Karaf (copy the jar file to the deploy folder in Karaf) I get a stacktrace in the Karaf log file with the following message: ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

query returns failed to read from database file

we have since today exceptions on executing some queries like this: Failed to read from file 'F:\Hummingbird\Objectdb\db\coreSystemDb.odb' we are using objectdb 2.7.2_05 in the objectdb log there is no message       ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

query only reports 1 result

2.7.2_01 suddenly some queries do only have 1 result even there are more results (you can use the database that you have from #308):   this query gives 1 result even there are a lot more: select o from ObjectNode o where o.classIdentifier = '(OP)' and o.state = 98 and o.type = 0 and o.parentNode.classIdentifier = '(XX)' if you take away the last condition you can see a lot of fitting results, a number of them fit with the complete condition ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

exception during online backup

hi   from time to time i get exception during online backup in server/client config: ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

Alias not used in ORDER BY

Hi, I am doing something simple like final Root<T> from = criteria.from(T.class) final Path<?> path = from.get("someStringProperty") final Expression<String> upperPath = builder.upper((Expression<String>) path); upperPath.alias("TEST"); criteria.multiselect(from, path); criteria.orderBy(builder.asc(upperPath)) I would have expected the alias to be used in the ORDER BY clause, something like ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

JPA Metamodel (JPA 2.0)

The JPA Metamodel API enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API. The JPA Metamodel API has a major role in defining queries using the JPA Criteria API.... Cancel To post a reply and/or subscribe to update notifications - please login . ...