About Entity

forum_thread

Null Exception

An user reported me this exception. I am not sure how to reproduce it, but maybe it can help you somehow to solve it.  Object DB 2.4.4_05, embedded The important part is: #1 2012-11-04 09:43 An user reported me this exception. I am not sure how to reproduce it, but maybe it can help you to solve it some ...

 
forum_thread

DB Doctor sets type to "unknown" for new fields

Hi, we are using ObjectDB 2.5.4_04 on Linux. We added two new Boolean fields to a persistable type and run DB Doctor on the exiting DB file in order to update the schema. The fields are added to the schema as expected, however their type is set to unknown - we were expecting Boolean. The attached DB file is what was produced by DB Doctor after adding the emergency and broadcast fields. If you run in DB Explorer ... RecordingMetaData AS r In addition, the entity class schema shows the Boolean type, as well as when you view ...

 
forum_thread

Out of memory

Hi, Today in the middle of the night ODB just crashed leaving this on console screen: #1 2012-09-18 07:06 Hi, Today in the middle of the night ODB just crashed leaving this on console screen: ObjectDB Serv ...

 
forum_thread

Deadlock in objectdb code

Running multi-threaded access to an embedded database using JDO, I'm getting a deadlock in objectdb code.  Thread dump attached. ... by: emf. getMetamodel ( ) . entity ( MyClass. class ) ; You can also ...

 
forum_thread

Explorer doesn't open file

Explorer doesn't open file...see attached error message and odb.  Explorer doesn't cleanly close the connection either (due to error I presume). Many thanks Russ ...  I shouldn't have been storing TimeUnit in the entity anyway as it is not a persistable type but it was in a super class and I ...

 
issue

NPE when doing a find()

I added a simple User entity during Tomcat startup: class User {  @Id @GeneratedValue private long id; @Basic(optional = false) private String firstName; private String middleName; @Basic(optional = false) private String lastName; } Everything works fine until I restart the server, which does a em.find(User.class, 1).  Then this happens: ... I added a simple User entity during Tomcat startup: class User {  @Id ...

 
forum_thread

ObjectDB 2.x is working without any activation code

Hi, I downloaded the objectDB from the http://www.objectdb.com/object/db/database/download and then added the objectdb.jar in my classpath. I used the default objectdb.conf file present in the objectdb.jar file and it is working without any activation code.. Is it is bug in objectdb or it works without actionvation code also. I am saving some information into the some.odb file and reading the informatin without any problem. What exactly is the activation code for ? Thanks & regards, ... ObjectDB with no activation should work with a limit of 10 entity classes and 1000000 objects, except in some environments in which these ...

 
forum_thread

Delete object from collection versus delete from JPQL

I'm a newbie, so this is a pretty fundamental question. I'm not sure if there is a bi-directional relationship between the objects in memory and ObjectDB.  I know I can modify the objects and use persist() to write them to the database.  But does running a JPQL update or delete alter the in-memory objects? There are cases where the JPQL syntax is more expressive than operating on a collection, but I'm not sure if that will alter my program state.  Will it? Thanks, Lee  ... UPDATE and DELETE queries bypass the EntityManager entity object management, and accordingly break the synchronization between ...

 
forum_thread

Cannot initialize db after inserting a java.util.List

Hi, I've spent some time trying to figure this out without success, so I'm asking for much appreciated help. I have an entity class like this: class Test { private List<String> list = new ArrayList<String>(); } I can persist and retrieve the obj just fine using standalone program, but whenever I access the db through a servlet container I get this error: objectdb.java.util.ArrayList cannot be cast to com.objectdb.spi.TrackableSysType This happens during EntityManagerFactory initialization.... so I'm asking for much appreciated help. I have an entity class like this: class Test { private ...

 
issue

Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker

Hi   there is something wrong with enhancement process I got that class was succesfully processed, log has size 0, enhancer is from build objectdb-2.2.8_08 and during object creation when some filed is initialised i got an exception   Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker at com.package.Network.__odbSet_Connections(Network.java:1) at com.package.Network.<init>(Network.java:95) at com.package.EnhancementTest.main(EnhancementTest.java:14)   ... is added once per hierarchy at the top level entity / persistence capable class). In addition, you should ...