About mapped

forum_thread

Issue with compile time enhancement

I have an entity library which I have integrated build time enhancement in.  The enhancer reports it has processed all of my persistent classes.  When I attempt to run a Bootstrap process with this library I get the error shown below.  The entity referenced in the error (Terms) is listed as having been enhanced. I am running with ObjectDB in embedded mode via a reference to a persistence unit also shown below. Please let me know if you need any additional information to diagnose this problem. Thanks, Joel ... were exactly correct, I had neglected to include the mapped superclasses that all of my entity classes extend.  Fixing that ...

 
forum_thread

Cannot sort descending, when ordering by caluculated float in a method

Hi, I have found an issue in ordering by a method. I have two entities : Invoice and InvoiceItem. public class InvoiceItem{ ..     private float price;     private float amount; .. }   public class Invoice{ ... OK. It seems that mapped by (inverse) fields are unavailable to methods in queries, regardless if ...

 
release

2.2.0

... Added support for serialization of inverse (mapped by) collection fields. Fixed some activations issues. ...

 
issue

NullPointerException when using multithreading

[ObjectDB 2.4.4_08] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) Client VM 1.6.0_29 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException at com.objectdb.o.ENT.C(ENT.java:557) at com.objectdb.o.OBM.bz(OBM.java:385) at com.objectdb.o.OBM.bz(OBM.java:261) at com.objectdb.jpa.EMImpl.persist(EMImpl.java:377) at ... Bug Version: Priority: Normal Status: Fixed Replies: 8 Type:  Bug ...

 
manual

Entity Management Settings

Explains settings and performance tuning of JPA entities in ObjectDB, the fast Java object database for JPA/JDO.... (e.g. a user defined class, which is not an entity class, mapped super class or embeddable class). The <cascade-persist> ...

 
forum_thread

enumeration table? how to on pure jpa?

Hello , I've relational db , and there is some table named enumerations with , some key and values.We will migrate to objectdb. Our problem is , we want to store some keys and values for global application configs. Like; tablename : enumeration table rows: key                value #1 2012-05-21 23:32 Hello , I've relational db , and there is some table named enumerations with , some key and values.We will mi ...

 
forum_thread

Null returned by Persistence.createEntityManagerFactory

Hi, So I'm currently having an issue where createEntityManagerFactory returns null. When I run the application on the my local machine through Tomcat it works fine, the odb file is created.    #1 2014-06-12 18:11 Hi, So I'm currently having an issue where createEntityManagerFactory returns null. When I run the ap ...

 
forum_thread

Schema migration - long to String

Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors on console: #1 2013-01-02 18:39 Hi, I need to change field type in our model from long to String. After changing filed type in our model ...

 
forum_thread

@AttributeOverrides , and postgresql + own TYPE

Hello,  first of all i want to thank for this is site. I'm begginer in Java and also in JPA and this site is very helpful for me. Now What is my problem. Unfortunately  i have to work with postgresql + JPA + eclipselink, because is my school project. Database is final and i can't do any changes even if i wanted to. In structure of DB  is this. -- -- Name: address; Type: TYPE; Schema: artio; Owner: facman --   #1 2011-03-10 17:43 Hello,  first of all i want to thank for this is site. I'm begginer in Java and also in JPA and this ...

 
forum_thread

@MappedSuperclass and @Transient not working as I expected

The problem could be my expectation, since I'm fairly inexperienced with JPA.  But here is the problem: The base class of my entity hierarchy is annotated as @MappedSuperclass, and one of its fields is annotated @Transient.  I expected that when I persist a subclass, no table would be created for the superclass, and the transient field would not appear in any table. The actual result is that there is a table for the superclass.  When I try to examine it in ObjectDB Explorer, it throws a NPE. ... is not an RDBMS so there are no tables, but indeed a mapped superclasses (as well as abstract entity classes) do not store data just ...