About find

forum_thread

JDO support vs JPA

Hi, I am about to update the JDO metadata in the package.jdo files after moving from ObjectDB 1 to 2. However I found that there is no complete description or guide how the XML metadata should look in version 2. I found only small fragments of attributes in the description of JDO Annotations (to which XML element is the given annotation equivalent). So my questions to this are: 1. Is there some description of XML metadata for ObjectDB ver2 using JDO which I did not find? ... XML metadata for ObjectDB ver2 using JDO which I did not find? 2. Is the combined usage of JDO annotation and XML metadata ... 13:49 1. You can find the full description in the JDO specification document. Some information ...

 
release

2.5.4

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

enhancement issue

Hi, still struggling with the enhancement issue. So, this works fine in development: static void main ( String[] args ) {     com.objectdb.Enhancer.enhance ( "app.model.*" ) ....   } } But in deployment, when the jar files is made with ShadowJar, this error occurs at runtime: ... So, the enhancer can't find the classes when they are in a jar file??   ... before the jar file. Alternatively you may find build time enhancement or enhancement by an agent (specifying it ...

 
forum_thread

Activated ObjectDB still throws "Too many persistable types"

I have upgraded from 2.3.7 to 2.4.4 and now my activation won't work, throwing the dreaded com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit I have already reactivated and checked that my objectdb.conf is correctly used (by inserting random chars at the beginning of the file, which lead to an error). Yet I still get the error thrown. Nothing in my configuration changed except the version. What could possibly be the problem with that? ... be the problem with that? Is there any way to find out whether a started ObjectDB server is activated, without having to ... correct for that machine. > Is there any way to find out whether a started ObjectDB server is activated, without having to ...

 
forum_thread

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

Hi, I upgraded the odb file using converter.jar which is having 15943 entry. Previously, with object 1.x, the same query was getting executed within an seconds and now the same is taking around 40 seconds in object db 2.x I have build the query using the follwoing Query query = persistanceManager.newQuery("LogEntryAttrebuteImpl.calss", "typeIndexes.contains(this.type) && logEntryIdList.contains(this.logEntryId)"); ... Thanks for the reply. Please find the odb file which i am using. I have already pasted the code ... is highly unexpectable for our software release. Please find the database file after repair Odb file ...

 
forum_thread

Remove not working

Hello! We have a strange problem. ... . begin ( ) ; b = em. find ( B. class , 1 ) ; em. remove ( b ) ; A a = em. find ( A. class , 2 ) ; em. remove ( a ...

 
tutorial

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in Eclipse.... . commit ( ) ;   // Find the number of Point objects in the database: Query q1 = em. ... ( ) ) ;   // Find the average X value: Query q2 = em. createQuery ( ...

 
forum_thread

Schema Update: class hierarchy change

Hello, we try to change the class hierarchy of an Entity. You wrote www.objectdb.com/database/forum/899 that ObjectDB support automatic schema evolution for adding and removing fields and for class hierarchy change.   But our small test failed: At first create a DataBase with one Object of MyEntity ... ( ) ; MyEntity entityWithID1 = em. find ( MyEntity. class , 1 ) ; System. out . ... ( ) ; MyEntity entityWithID1 = em. find ( MyEntity. class , 1 ) ; System. out . ...

 
forum_thread

Performance problem

Hi, we have a strange performance problem with ObjectDB 2.5.3_01 and JBoss 7.1.1. We have two ObjectDB databases on one ObjectDB server. Production database is running 5-10 times slower than test database. Their size and number of records are almost identical. When running production database in separate test environment its speed is very good. We did a performance analysis on our 2 linux servers one running JBOSS and other running ObjectDB. - CPU utilization of JBOSS server is max 5-10% (per core)... cause a massive load of objects from the database. You may find out that by a recursive EAGER fetch you enforce loading of the entire ... the target class in the same way, recursively, until you find the problematic relationship. Please understand that we can only ...

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