About not

forum_thread

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ..     @OneToMany(mappedBy = "invoice", fetch= FetchType.EAGER, orphanRemoval=true, cascade= CascadeType.ALL)     private List<InvoiceItem> invoiceItemList; .. } ... Orphan removal was not handled by ObjectDB for inverse (mapped by) collections. Please try ...

 
forum_thread

KEY() / VALUE() not recognized in JPQL??

Hi! Explorer says "unexpected token" on KEY(..: SELECT FROM individual.IndividualContact $1 LEFT OUTER JOIN $1.profile.title.name m WHERE (KEY(m) = 'deu' AND VALUE(m) LIKE '%Dr%') profile = embedded entity title = referenced entity name = Map<String, String>   thanks, Alex ... of 4 issues includes the main features of JPA 2 that are not implemented yet. ObjectDB Support ObjectDB - ...

 
forum_thread

Entity has be persistended,but query not fetched?

I create a new entity T newT and persistend it,then I create a query "select t from T t" to fetch all T entities.But  then the newT is not contain in the query result. Why? ... T t" to fetch all T entities.But  then the newT is not contain in the query result. Why? code order: query. ...

 
api-jpa

javax.persistence.metamodel.IdentifiableType

Instances of the type IdentifiableType represent entity or mapped superclass types.(Interface of JPA)

 
api-jpa

javax.persistence.metamodel.MappedSuperclassType

Instances of the type MappedSuperclassType represent mapped superclass types.(Interface of JPA)

 
issue

An entityManager.flush() with many entities is not possible

  The following exception occures if we call entityManager.flush() where the corresponding JPA PersistenceContext has many entities and relations. What is the reason for the exception? entityManager.getTransaction().commit() instead of a entityManager.flush() works correctly. Unfortunately I have not found a simple example to reproduce this exception. The entity model of the flushed JPA PersistenceContext is too complex.  ... works correctly. Unfortunately I have not found a simple example to reproduce this exception. The entity model of the ...

 
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. ... updated by schema evolution. Unfortunately it does not work, because the class hierarchy had already always existed and the "new" ...

 
forum_thread

Activation key causes database to not start

We had ObjectDB version 2.5.7_06, then we bought a server license, then we activated it today. We get an error when trying to start ObjectDB after adding activation in objectdb.conf. We initially thought it's because it was an old version, so we upgraded to 2.6.5_04, but without success. We still cannot start ObjectDB if we add the activation key in objectdb.conf. This is the ObjectDB log we get when trying to start ObjectDB with the license. What is to be done? Thank you. :) ... You can check whether ObjectDB is activated or not using the following query: boolean isActivated = ...

 
forum_thread

Replication not working anymore

Hello! I upgraded my ODB Version to 2.5.4 to get rid of some bugs. Now i tried to start my replica server. It starts fine and then crashes after a few seconds with the following exception: ... I don't know what went wrong the first place. I did not do anything different the first time. ...

 
api-jpa

javax.persistence.metamodel.EntityType

Instances of the type EntityType represent entity types.(Interface of JPA)