About execute

forum_thread

Online backup with JDO

Hi, I would like to try the Online Backup tool as I am making backups up to now with the not encouraged file-copying method while the database is online. So my first question is to this file-copying. I've read at the Database Doctor that copying the db file while it is online may cause corrupted DB file. Does this mean that the copy can be corrupted or even the source file ? My second question is about starting the online backup. The manual suggests starting it via the EntityManager with the code ... newQuery ( "objectdb backup" ) . execute ( ) Thx, JG   ...

 
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

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

 
forum_thread

Unable to delete the .odb file programatically

Hi, I created the test.odb file, read the contents and now trying the delete the odb file using objectd2.x. I see the folder there are two files created test.odb and test.odb$. Using the following code to delte the odb files #1 2012-07-23 16:16 Hi, I created the test.odb file, read the contents and now trying the delete the odb file using objectd2. ...

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

 
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

Cache configuration of database file pages, query programs, query results

Are there some possibilities to configure following caches in order to keep cache data for only some important entity types and for the entire life cycle of the EntityManagerFactory. Cache of database file pages. Cache of query programs. Cache of query execution results. #1 2016-06-22 08:04 Are there some possibilities to configure following caches in order to keep cache data for only some important en ...

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

 
forum_thread

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

During import big logs we are observed some memory leaks inside of ObjectDb, so, could you explain what we did incorrectly or investigate how to fix it ASAP. Source code which causing memory leaks: #1 2016-02-04 09:54 During import big logs we are observed some memory leaks inside of ObjectDb, so, could you explain what we did in ...

 
forum_thread

Failed to write the value of field using reflection (error 363) on LAZY fetch

Hi There I am using ObjectDB 2.6.3. I get the following Exception when I try to read my entities with a query where I have set to use LAZY initalization. It fails when it tries to set a 1:n member (e.g. a Modell has several Artikels) . When I remove the LAZY hint on the query execution it works. Any hints why this can happen? The Mapping of class Modell and its member: #1 2015-12-18 17:42 Hi There I am using ObjectDB 2.6.3. I get the following Exception when I try to read my entities with a query whe ...