About entity

forum_thread

enhanced object .. NOT enhanced

Hi  I think I have found a bug :  - I have enhanced a class but when I tried to persitst it I got an error that this class has not been ehanced (what is important, this class has _odbTracker field added) So, instead of DB write a standard serialization mechanizm is triggered. Finnally we get an OutOfMemory expeption. b ... is not the result of no enhancement but of a missing @Entity / @PersistenceCapable annotation (or alternative XML, e.g ...

 
issue

Unexpected exception (Error 990)

Exception is thrown on commiting a transaction using this code: transaction.begin(); try { repository.setStatus(ImportStatusFlag.RUNNING_IMPORT); repository.setImportProgressMessage("Importing..."); //$NON-NLS-1$ repository.setImportProgressPercent(0); transaction.commit(); } finally { if (transaction.isActive()) { transaction.rollback(); } } "repository" is a Entity in database. Stracktrace as follows:   ... ; } } "repository" is a Entity in database. Stracktrace as follows:   [2013-08-21 ...

 
forum_thread

JPA Configuration without persistance.xml

Hi,   I've been using Hibernate with JPA, and found it too slow, so am moving my project to use ObjectDB. My Jar is being held inside another application, so I don't want to have to rely on a persistance.xml file being in a particular place. When using Hibernate, I was able to do the following: ... much, I read on: http://www.objectdb.com/java/jpa/entity/persistence-unit#Managed_Persistable_Classes And wasn't ...

 
forum_thread

Possible issue with Spring JPA and Embedded

Hello, ... are NEVER returned) If I change my embedded class to be an entity it all works happily. I have attached a spring maven project ...

 
forum_thread

Understanding limitations of schema evolution

Hi, I am trying to understand the limitations of schema evolution and have read the material on http://www.objectdb.com/java/jpa/entity/schema as well as the link therein regarding manual schema update when changing a field’s name Yet, i am confused regarding how to handle the case where one re-factors a class by moving one if it's Fields to a different class. Is this case managable? Thanks... have read the material on http://www.objectdb.com/java/jpa/entity/schema as well as the link therein regarding manual schema update when ...

 
api-jpa

javax.persistence.PostUpdate

Is used to specify callback methods for the corresponding lifecycle event.(Annotation of JPA)

 
api-jpa

Bindable.BindableType.ENTITY_TYPE

Entity type(Enum Constant of javax.persistence.metamodel.Bindable.BindableType)

 
issue

StaticMetamodel throws NPE with Spring-Data in PathImpl.get()

From my Entities a StaticMetamodel is generated through Hibernate JPA 2 Metamodel Generator. When i now try to build a query with the Specification-Interface [new Specification<Benutzer>() {            @Override JPA Feature Version: 2.4.1 Priority: Normal Status: Active Replies: 5 Type:  JPA Feature ...

 
api-jpa

PrimaryKeyJoinColumn.referencedColumnName

(Optional) The name of the primary key column of the table being joined to.(Annotation Element of javax.persistence.PrimaryKeyJoinColumn)

 
forum_thread

Embedded Object inside another embedded object - is that possible?

I have an entity with an embedded object - it works fine. Now I am trying to add an embedded object inside the first level embedded object - but it does not seem to store it and does not throw either... I was wondering if it was a limitation or not? has anyone tried this before? Thanks ... 00:57 I have an entity with an embedded object - it works fine. Now I am trying to add ...