About execute

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.  Bug Version: Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...

 
forum_thread

ObjectDB version 2.2 has been released

ObjectDB 2.2 has been released and it includes important additions and fixes: #1 2011-04-03 09:11 ObjectDB 2.2 has been released and it includes important additions and fixes: Added full support o ...

 
forum_thread

Query fails with numerical values > 2^31

Hi ! I'm trying to execute the following query (from Java-code, also tried ObjectDB Explorer) delete from DataRecord p where p.TimeOfDeletion < 4147483648 This fails with "invalid numerical literal". The field p.TimeOfDeletion is of type long. As far as I know, the maximum value greater than 2^31 (Oracle: "The long data type is a 64-bit two's complement integer.") ... Hi ! I'm trying to execute the following query (from Java-code, also tried ObjectDB Explorer) ...

 
api-jdo

jdoPreAttach()

This method is called during the execution of javax.jdo.PersistenceManager.makePersistent on the detached instance before the copy is made.(Method of javax.jdo.listener.AttachCallback)

 
api-jpa

setFlushMode(flushMode)

Set the flush mode type to be used for the query execution.(Method of javax.persistence.Query)

 
forum_thread

Populating entity id before transaction commit

Hi, I have a question about populating auto generated id before transaction commit. We are using OBD with Spring and transactions are managed by Spring. The problem is, that we have custom annotation that wraps some of those functions to do additional work. But this annotation is executed before transaction is committed so all returned entities are not populated with ID in this context. How can I force ODB to populate entity ID before transaction is committed? Or maybe there is another way to finding ID of entity before commit? #1 2013-01-25 20:11 Hi, I have a question about populating auto generated id before transaction commit. We are using OBD with ...

 
forum_thread

explorer locks local database in readonly mode

hi, my current use case is: execute unit test, verify results in explorer. my problem, i have to close the explorer before every run, and open it again after the tests are done. this slows down the whole process. i opened the database in readonly mode, but the file will be locked by the explorer process. do you think it's worth to improved this? if yes, isseu #39 (refresh) will be useful too. thanks ... hi, my current use case is: execute unit test, verify results in explorer. my problem, i have to ...

 
api-jdo

addCategory(categoryName)

Add the members (fields or properties) of the named category to the set of members in this FetchGroup.(Method of javax.jdo.FetchGroup)

 
forum_thread

InternalException & UserException using objectdb with Jboss AS 7.1.1 final

Hello. We are currently using ObjectDB in application server Jboss as 7.1.1.final. ObjectDB version is 2.5.3_02. The following errors occur when multiple ajax requests are executed: Caused by: com.objectdb.o.InternalException: Error reading UTF string Caused by: com.objectdb.o.UserException: Mismatch client-server protocol prefix Our current settings: Persistence.xml: #1 2013-10-08 10:48 Hello. We are currently using ObjectDB in application server Jboss as 7.1.1.final. ObjectDB version is 2. ...

 
issue

Page cache File handling produced an java.io.IOException: Negative seek offset

we get following exception when we execute a find() in a scenario, we can not readjust with an example.   Before the exception throws we get two outputs on std error: pos = -8192 length = 8192   The Exception: ... we get following exception when we execute a find() in a scenario, we can not readjust with an example. ...