About find

forum_thread

On initialisation of lists: impact on migration from EclipseLink to ObjectDB

I would like to draw the attention of those assessing migration from EclipseLink ORM to ObjectDB to a significant difference in the initialization of persistent lists, namely that EclipseLink injects a List implementation into the List field to be initialise it during EntityManager.persist(). So in EclipseLink the following works: public class HasListOfBlocks { .. ... This has impact on migration; in my case I would have to find an explicitly init about 1000 lists, because I have a large number of hand-coded (harder to find) and generated (easy to regenerate) Lists in entities. There are ...

 
forum_thread

Import data from MySQL

Hi, I tried the objectdb in my research, find it very easy to handle without setting up xml files. However, I cannot find the import/export functions between other database, then how can I transfer mysql data into objectdb? When I use explorer.exe to browse the database in objectdb, eclipse tells me another app occupy it, then how can objectdb support multi-thread? ... Hi, I tried the objectdb in my research, find it very easy to handle without setting up xml files. However, I cannot find the import/export functions between other database, then how can I ...

 
forum_thread

Retrieval by Access bug?

Dear Sirs, I have an object A, that has a OneToMany FetchType.EAGER List of objects B, that has a field with a reference to an object C. I have this code: ClassA objectA = em.find(ClassA.class, 1); for (ClassB objectB : objectA.getListB()) {     ClassC objectC = objectB.getObjectC(); } em is an open Entity Manager with a running transaction. ... I have this code: ClassA objectA = em. find ( ClassA. class , 1 ) ; for ( ClassB ... not, I receive an unmanaged copy of objectC, and I cant find any reason for that. Could be any bug in ObjectDB when I retrieve ...

 
forum_thread

Unexpected NoSuchFieldError exception

Hi, suddenly running into a number of issues:   1) no-arg constructor (error 352) 2) java.lang.NoSuchFieldError: __odbTracker 3) Attempt to start a transaction while another transaction is running. In each case, I've found it difficult to figure out where to find the right documentation. Below is an example that has #1 and #2 together. ... case, I've found it difficult to figure out where to find the right documentation. Below is an example that has #1 and #2 together. Additionally it's not clear how I find out whether configuration settings have been found (e.g. is it possible to ...

 
forum_thread

Maven driven compile time ehnancement

Hi,    Just thought I'd share a small bit of Maven config to aid in enhancing persistent classes during compile time. Just add the following to your pom.xml: ... finds it useful. I searched around for it but couldn't find a maven centric way to handle it. Cheers ...

 
issue

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... // do something ChildClassA entityWithID1 = em. find ( ChildClassA. class , 1 ) ; entityWithID1. ... = "a" ; ChildClassA entityWithID2 = em. find ( ChildClassA. class , 2 ) ; entityWithID2. ...

 
release

2.5.3

... Added support of using entity instead of a PK in find (retrieval by example). Added support of using list of ... . Fixed a bug in optimistic locking on find by using LockModeType.WRITE . Fixed exception when a ...

 
forum_thread

Deploying a BIRT Project using ObjectDB onto Tomcat

Hi I am currently having trouble deploying a BIRT Report onto Tomcat. The report works fine in the designer and I can run it without problem. However when i deploy it on Tomcat I get errors, Cannot find or process the %oda.data.source.id driver's data source extension configuration. Cannot find the ODA dataSource extension (%oda.data.source.id). Check the workspace log file for any problems with loading the extension bundle and its dependencies.   ... i deploy it on Tomcat I get errors, Cannot find or process the %oda.data.source.id driver's data source extension configuration. Cannot find the ODA dataSource extension (%oda.data.source.id). Check the ...

 
forum_thread

Items in list are doubled, when the entity class is not enhanced

Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not enhanced, added items are doubled. Here is an example: ... ( ) ;   em. find ( Customer. class , Customer. class ) ; em. find ( Item. class , Item. class ) ;   // ...

 
issue

Unexpected error when loading all entity instance

Hi, when going through all entity instance to find orphaned entries we get the exception: ... Hi, when going through all entity instance to find orphaned entries we get the exception: Exception in thread "main" ... Hello, I did not find a way to reproduce the error now. It seems there was insufficient memory ...