About in

forum_thread

How to change properties in urls2.xml?

Hello, I am using objectdb in an embedded case with network private access to each database. I see it exists a file name "urls2.xml". <url><main>/var/lib/tomcat7/db/myDb.odb;user=admin;password=admin</main><alt>objectdb://127.0.0.1:38059/;user=$code;password=a2e54ea3-d889-41a7-953c-dabc42877742</alt></url> This file is autogenerated by objectdb. And it describes the locals databases url and their port / user / password properties. ... Hello, I am using objectdb in an embedded case with network private access to each database. I see it ... 17:44 The solution in #2 is for hiding sensitive information, in case you have a problem with ...

 
forum_thread

Running doctor.jar with entity classes in classhpath

Hi, I am wondering how to populate new entity classes to database file, so that I could add new instances of these entities to database through explorer. I tried to run com.objectdb.Doctor with model.jar (my entity classes in it) in classpath but it doesn't work (new entities still dont show up in explorer). Could it be possible to add that kind of feature in next relase ?   I run doctor by executing cmd like : java -cp bin\objectdb.jar;_my_model_.jar com.objectdb.Doctor old_db.db new_db.db ... run com.objectdb.Doctor with model.jar (my entity classes in it) in classpath but it doesn't work (new entities still dont show up in explorer). Could it be possible to add that kind of feature in next relase ...

 
forum_thread

How find out ObjectDB version at runtime (in a web app)

Am getting inconsistent results with the "objectdb.temp.no-enhancement-crc-check" system property of objectdb-2.6.9_02 in a Glassfish web app. Can see correct version of objectdb-2.6.9_02 in /build/web/WEB-INF/lib. When one runs the enhancer (which I am doing post-compile, pre-deploy with an Ant script) Object clearly indicates the version. Q: How can one interrogate objectdb for the version at run-time ? ... system property of objectdb-2.6.9_02 in a Glassfish web app. Can see correct version of objectdb-2.6.9_02 in /build/web/WEB-INF/lib. When one runs the enhancer (which I am doing ... the version at run-time ? It does not seem to be in the odb logs, and turning on the debug mode does not seem to help. If I am ...

 
forum_thread

Empty temporary dat files in the temp folder

Hello, We have questions regarding the pagesX.dat files in the temp directory. We detected a problem on a machine with ‘only’ 2GB free memory on disc drive C:/ because during using our Product the %temp%/objectdb_123... folder growth up to 2GB. And then we run into some following errors due to lack of memory. ... We have questions regarding the pagesX.dat files in the temp directory. We detected a problem on a machine with ... stuff (find, persist, remove …) and then commit or in the case of errors rollback the transaction and closing the EntityManager. ...

 
issue

NPE in server mode

See stack trace below. Unfortunately I just uncovered this in a log check so I dont have any further information surrounding the circumstances. java.lang.NullPointerException at com.objectdb.o.SHN.ai(SHN.java:470) at com.objectdb.o.SHN.K(SHN.java:146) at com.objectdb.o.HND.run(HND.java:133) at java.lang.Thread.run(Thread.java:595) Full log is attached. NB: This occured in version 2-2-9_07 (as this is what we currently use in prod) so may be resolved in the latest version anyway. ... See stack trace below. Unfortunately I just uncovered this in a log check so I dont have any further information surrounding the ... Full log is attached. NB: This occured in version 2-2-9_07 (as this is what we currently use in prod) so may be ...

 
forum_thread

'DROP TABLE' in ODB?

Let's say I no longer need some entity in my project and after deleting all the objects of this type in database I want to remove this type from schema. How can I do this? Is there something like SQL 'drop table' in ODB? ... Let's say I no longer need some entity in my project and after deleting all the objects of this type in database I want to remove this type from schema. How can I do this? Is there ...

 
forum_thread

ObjectDB and Hibernate in one JVM?

Hi all, I need to persist my application data and also access a legacy RDBMS system in the same Java application. Currently I use Hibernate for both purposes. I've heard ObjectDB is much faster than Hibernate, so I want to try the it to deal with my application data, but I still need some ORM system to access RDBMS. ... my application data and also access a legacy RDBMS system in the same Java application. Currently I use Hibernate for both purposes. ... Is it possible to use both ObjectDB and Hibernate in the same application? Both of the product include its own copy of ...

 
forum_thread

Reading 1.x odb files in ObjectDB 2.x without upgrading

Hi, We have a problem in the backward compatibilty in our software as once we have migrated object db odb file from version 1.x to 2.x, user is unable to open the odb files in the application which is having object db 1.x installed. Is there any way to read odb files from 1.x in object db 2.x without upgrading it ? Or user can see the content in read only mode without upgrading it ? Thanks ... Hi, We have a problem in the backward compatibilty in our software as once we have migrated object db odb file from version 1.x to ...

 
forum_thread

Is it ok to put list or map of embeddable objects in entity ?

Hi, Is it ok to put list or map of embeddable objects in entity? I mean, for example : @Entity public class Entity_A {     (...)     @Embedded     List<Class_B> bList;     @Embedded     Map<String, Class_C> cMap; (...) } where Class_B and Class_C are annotated as @Embeddable ? In the examples, there is only situation where there is one single instance of embeddable class in entity. And what happens if I do operation like : ... Is it ok to put list or map of embeddable objects in entity? I mean, for example : @ Entity public class ... where Class_B and Class_C are annotated as @Embeddable ? In the examples, there is only situation where there is one single instance of ...

 
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: ... into the first line in main 2. add a String field into Customer with getters and setters. (the field name in my case is text) 3. before em.merge(c); add this line: ... 11:48 Your program (in #1) demonstrates a very strange behavior, which is the result of the ...