About entity



Used to override a mapping for an entity relationship.(Annotation of JPA)


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{ ... ( ) ; }   @ Entity public static class InvoiceItem { ... ; } }   @ Entity public static class Invoice { @ ...


Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

Hello, in our application we use ObjectDB in embedded mode as part of the Profile that can be stored and opened by our customers. Our application is an eclipse RCP application with a domain-driven design. The product can be installed in different configurations (in other words with more or less PlugIns). This presents us with further challenges when we have made changes to DB schema for new versions. ... That this ProfileMigration works correctly we add ALL entity classes to this product. Because we will prevent a data loss of entites ... application also a plugin which contains the entity classes.   We appreciate the other features of the ...


object creation during pmf.getPersistenceManager()

Hi ... one instance of every user defined persistable type (entity class / embeddable class / persistence capable class) using the no arg ... added during enhancement) for creation of all the managed entity objects (avoiding a more complex enhancement machanism that could have ...


Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

I have two classes a Container type class and another class that is 'contained' by that class. The contained class, CompoundKeyMapItem, represents an alternate implementation of an object held in a Map, and uses a Compound Primary Key. The contained class therefore uses an @IdClass. This all works fine on Eclipselink. However when I try and run this in ObjectDb I get the following error; ... . Basic ; import javax. persistence . Entity ; import javax. persistence . EntityManager ; ... . common . TestException ;   @ Entity @ NamedQueries ( { @ NamedQuery ...



Refresh the state of the instance from the database, overwriting changes made to the entity, if any.(Method of javax.persistence.EntityManager)


Help understanding Entity behavior with JPA

Hi Support,   We have a entity with an @Id entity which we then put into a list and store in an different entity inside a field defined as:   @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType.EAGER) private Object payload; ... Hi Support,   We have a entity with an @Id entity which we then put into a list and store in an different entity inside a ...


Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member, this query works, if I set id as @Id, it stops working and gives zero results. Is this a known limitation or a bug? Do you have any idea how to solve this problem? ... ( ) ; }   @ Entity public static class MyEntity {   ...


Beginners questions

Hello !! I am new in JPA / ObjectDB development and I have many questions: 1. If I understood correctly, ObjectDB is an implementation of JPA standard (currently 2.0)? 1.1. Is ObjectDB on the same level like Hibernate with only difference that Hibernate stores the data in a RDBMS and ObjectDB has its own format?   ... named EBResult which looks like this: @ Entity ( name = "RESULT" ) public class EBResult ... to see an object named "RESULT" due to class annotation @Entity(name="RESULT"). Instead I see following: 2.1. Why? Is ...



Utility interface between the application and the persistence provider managing the persistence unit.(Interface of JPA)