About Entity

issue

Remove an entity which attributes were changed

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic lock exception of the removed entity.   If this operations on the entity are executed in only one plugin, it works well.   ... three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the ...

 
forum_thread

Problem of Enhancer with JAXB / Proxified Entity Bean.

Hello Support, I run on a prod server an objectdb java agent with my app. In this application, all my entities beans are constructed from a JAXBContext ( SOAP CXF Webservice or Direct JAXB Unmarshalling ) When i watch the objectdb log, i see pages of errors. #1 2014-05-20 15:45 Hello Support, I run on a prod server an objectdb java agent with my app. In this application, al ...

 
api-jpa

javax.persistence.DiscriminatorValue

Specifies the value of the discriminator column for entities of the given type.(Annotation of JPA)

 
forum_thread

Insert a new entity class in a class hierarchy does not work

Hello, we have an entity class hierarchy and we want to insert a new entity in this hierarchy. Unfortunately it does not work, because the class hierarchy had already always existed and the "new" entity class needed still only the @Entity annotation, all remaining fields got null as a value. Only if the new entity would be also inserted new in the class hierarchy then it works well. See our example in the attachments. ... Hello, we have an entity class hierarchy and we want to insert a new entity in this hierarchy and our database must be automatically updated by ...

 
api-jpa

javax.persistence.AttributeOverride

Used to override the mapping of a Basic (whether explicit or default) property or field or Id property or field.(Annotation of JPA)

 
forum_thread

Entity is not related to ObjectDB, but i get exception from ObjectDB

Here is the description of the problem we are facing:
We have an entity DialogActionNew which previously was located in ObjectDB and recently has been transferred to PostreSQL. We are using ORM Hibernate
When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive another entity - DialogNew, which has an exception: ... the description of the problem we are facing:
We have an entity DialogActionNew which previously was located in ObjectDB and recently ... PostreSQL. We are using ORM Hibernate
When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive another ...

 
forum_thread

Memory consumption of empty Strings

After doing some memory related research in my program, I found a possible place for an enhancement of objectdb: My program has several entities which contain many String. Often some of these String are empty (""). To avoid unnecessary memory consumption, the String within the entities are initialized like: String firstName = ""; ... 200000 ; i ++ ) { MyEntity entity = new MyEntity ( i ) ; entities . add ( entity ) ;   entityManager. getTransaction ( ...

 
forum_thread

Removing entity class

Hello, I am using evaluation version of ObjectDB for long term private project. Recently I hit the 10 entities limit and got exception: com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit Among the 10 entities in the project there are 2 entities I added long time ago and they were never really used. I deleted them from Java source code, but there are still in ObjectDB database. The 2 tables for these entities are empty, but the tables exist, so they count into 10 entities limit. ... My question is: Is it possible to remove entity/table completely from ObjectDB database, in order to make space for new entity? Thank you in advance for any answer. Best Regards ...

 
forum_thread

persisting object with long[][] arrays of array

Hi, I have an object I am trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction().commit(); Here is the object: ... CascadeType ; import javax. persistence . Entity ; import javax. persistence . FetchType ; ... . OneToMany ;     @ Entity public class TESTObject implements Serializable { ...

 
forum_thread

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

When using inheritance throw exception java.lang.NoSuchFieldError: __odbTracker on NetBeans 7.3 + Jboss 7.1.1, but works fine on NetBeans 7.3 + GlassFish 3.1    ... __odbTracker on NetBeans 7.3 + Jboss 7.1.1 @ Entity public class Person extends AbstractObject { ... ; } }     @ Entity public class City extends AbstractObject { ...