About entities

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.   Bug Version: Priority: Critical Status: Closed Replies: 1 Type:  Bug ...

 
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. ... agent with my app. In this application, all my entities beans are constructed from a JAXBContext ( SOAP CXF Webservice or ...

 
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. #1 2017-03-13 16:11 Hello, we have an entity class hierarchy and we want to insert a new entity in this hierarchy and our dat ...

 
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: #1 2014-04-22 15:09 Here is the description of the problem we are facing:
We have an entity DialogActionNew which previously was loca ...

 
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 = ""; ... an enhancement of objectdb: My program has several entities which contain many String. Often some of these String are empty (""). ... unnecessary memory consumption, the String within the entities are initialized like: String firstName = ""; In this case ...

 
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. ... for long term private project. Recently I hit the 10 entities limit and got exception: com.objectdb.o.UserException: Too many ... (>10) - exceeds evaluation limit Among the 10 entities in the project there are 2 entities I added long time ago and they ...

 
forum_thread

Can a Set<E> be a foreign key?

I have two classes, Cell and Character.  Basically, the cell is like a room, and contains a variable (private Set<Long> cellHeldCharacters;) which holds the IDs of the characters within the cell (The IDs are Primary Keys).  Can I use the Foreign Key annotation for the variable, or is it illegal/unrecommended to do it for a Set? For a better picture, I have: #1 2011-04-15 04:15 I have two classes, Cell and Character.  Basically, the cell is like a room, and contains a variable (privat ...

 
forum_thread

Object explorer cannot open odb file. ObjectDB many-to-many relationship

I created a data model to test many-to-many relationship with a link table as following (full code in attachement) #1 2011-11-24 15:38 I created a data model to test many-to-many relationship with a link table as following (full code in attachement ...