About in

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

 
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

objectdb explorer in ver 2.2 and 1.0

Hi   In first step  I have evaluated JPA API now I'm testing JDO API and I'have spotted that object explorer has lower functionality than in ver 2.2 eg garbarage collector or xml import/export functions are missing, could You explain why?   br Tomasz ... 15:57 Hi   In first step  I have evaluated JPA API now I'm testing JDO API and ... spotted that object explorer has lower functionality than in ver 2.2 eg garbarage collector or xml import/export functions are missing, ...

 
manual

[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO.... are user defined classes whose instances can be stored in a database using JDO. Instances of these classes that represent objects in the database are called persistent objects or persistent instances . ...

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

 
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

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

@Entity saved in Tomcat session - problem

Hi, I have found a problem, when storing @Entity object in Tomcat session. When starting or stopping Tomcat, I get nasty exception - please check attached log. Strange thing is, that after this exception everything works perfectly fine. The problem appears after using Enhancer. The nasty solution is to create copy of @Entity class as normal POJO and use it to store in session. The problem is, that we need the same logic for temporary users (without storing in DB) and permanent users (stored in database). A separate POJO makes the whole logic quite complicated.... I have found a problem, when storing @Entity object in Tomcat session. When starting or stopping Tomcat, I get nasty exception - ... of @Entity class as normal POJO and use it to store in session. The problem is, that we need the same logic for temporary users ...

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

 
manual

[ODB1] Chapter 2 - A Quick Tour

Demonstrates basic database programming using ObjectDB. ... step by step. Both sample programs are contained in ObjectDB's samples directory. This chapter contains the following ... The HelloWorld sample program manages a list of strings in the database. Each time the program is run another string is stored in the ...