ObjectDB Database Search
101-150 of 200 resultsEntity 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 ... Hibernate
When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive another entity - DialogNew, which has an exception: ERROR [org.jboss.ejb3.invocation] (pool-18-thread-1 | |
Persist error @ManyToMany how to define correct entities relationships I have Product entities containing a list of Category enties. Each product can have multiple Category but they are all refering to same limited set of Category entities (via ID). There is not ... too). @ Entity public class Product implements Serializable { @Id @GeneratedValue private long id | |
Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities ObjectDB support, while the entities in a result set list from a JPQ query are initially managed ... the transactional one and when you want to use the entity in a transaction it will have to be properly merged ... , which is what you are encountering. As long as the Entity is not serialized, and the connections | |
Optimistic locking: prevent version increment on entity collection attribute Hello, I have an entity E with an attribute which is a collection of entities (one to many ... the increment of the version of entity E when entities are added to or removed from the collection ... Farid Oudjane If it is a bidirectional relationship that is owned by the entities in the collection | |
Entity listener - event instead of object Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity . There is a problem however with accessing "old" version of object stored in ... store separate entity for given event. Right now I'm using BaseEntity which contains | |
List of Enum Values in an entity Entity with an ArrayList of Enums: private ArrayList flags; The flags are stored into the database ... . If the entity is enhanced, you may see a null value in the debugger before accessing the field ... , the guest class is the only thing I changed in the whole application: package .model. entity ; import java | |
Merge on detached entities Hello, it is possible to merge detached entities ? There are some attached entities which load from the database. The transaction is finished and the entities become detached. In a new transaction the fields of the detached entities will be changed and a merge by em.merge( entity ) will be saved | |
Is it possible to remove parent/child entities without refresh? We have a big entity object tree in our project. If I use the entityManager.remove(childEntity) method to remove a child entity a entityManager.refresh(parentEntity) is necessary in order ... . Do you know a way to remove a child entity from a parent entity without a entityManager.refresh | |
Updating Entities with Entities not sending their updates to each other. I have two Entities in question at the moment: Employee and Paygrade. @ Entity public class Employee { private String id; private String fName; private String lName; private Department dept; private Paygrade pay; ... } @ Entity public class Paygrade | |
Package name for persisted entities Hi, I have a question about package name and searching for entities . As for now we were using ... for both systems. After merging entities from two different projects, we get single jar with all entities . Unfortunately some of the names are the same for entities : - homplex.model.dbobject.Inspiration | |
Duplicate Entity class names causes Exception in Query I have two Entities which have the same class name but reside in different packages ... of one of these entities . If I execute that query I get an exception; Caused by: com.objectdb.o ... the query on objdbTest.Item package objdbTest; import .... @ Entity @NamedQueries({ @NamedQuery | |
"Attempt to lock a non entity object" error and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity ... ------------------------------------------------------------- Attempt to lock a non entity object AlphaOne Ron Brennan Error was caused ... and detach all managed entity objects: ... Rolling back a transaction - either by invocation of rollback or | |
Entity Update - Is the documentation up to date?/update suggests should not work. First, I've been modifying managed entities from outside an active ... automatically. Second, I'm using an array of entities inside another entity , and setting ... been modifying managed entities from outside an active transaction. If I subsequently begin | |
IDs of Entities suddenly became UUIDs? ID, others a String UUID. Our Base- Entity everything inherits from is declared as usual with Long ... !?? How could that have happened and what are we supposed to do now to fix this as when quering those entities ... the same entity type!?? Alex quasado Alexander Adam As discussed on this issue , ObjectDB doesn't | |
Does ObjectDB create one instance of each entity class on (web app) load ? a large web app with the NetBeans 8.2 Profiler. I can see that exactly one instance of each entity ... . (I've also checked am not loading any entities using JPA callbacks.) If I take a heap dump ... reason create an instance of each entity (and if so, under what circumstances ) ? I | |
Accessiblity of attributes in entities in several OSGi-Bundles Hello, we have a problem with enhanced entities . It is very important to solve this issue. There are three entities in two OSGi-Bundles and we execute importRequirements() in RequirementServiceImpl: __________________________________________________________ Bundle A: @ Entity class ModelElementImpl | |
Need help to make this test work and define proper annotations for entities Lists annotations on entities list, could anyone help me to define them? NB in this test case I didn't set all entities methods for the sake of clarity, also in actual application no field are public nor static and no entity is static. package testodb; import java.io.File; import java.io | |
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 ... , 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 | |
Removing entity class 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 ... ObjectDB database. The 2 tables for these entities are empty, but the tables exist, so they count | |
DB Explorer cannot be opened after schema package renaming of entity types The DB Explorer cannot be opened after schema package renaming of entity types because it seems that deprecated entity types which are removed from our java project break the database. In the database the entity types and deprecated entity types can be part of the identical package. The schema | |
How Should I Configure objectdb.conf to Obtain 256KB Disk IO Requests and Maximize Shared PersistenceManager Entity Cache? all accesses over a datastore file? Are the cache entries entire persisted entity objects or fields ... ; Entire persisted entity objects? Fields of arbitrary objects (like key-value store ... ; For example, if my application asks for an entity object, will arbitrary entity objects around it in | |
Embedded Entity in EmbeddedId not persisted. Error 631 at select. javax.persistence. Entity ; import javax.persistence.EntityManager; import javax.persistence.Id ... ; question: Is @ Entity annotation of class B not sufficient enough, or *   ... ; @ Entity public static class A {   | |
Entity can be found by find() but not by query Hello, we create an entity in transaction A, commit and close the transaction. After that in transaction B we try to find the entity in the DB. But we get always only a result with em.find(), with a query it is not always possible to get the entity , sometimes we get the entity | |
Failing to read entities under load in multithreaded tests - we sometimes fail to read entities from the database. I've isolated this issue to a fairly simple test case (please see attached eclipse project). I have some test entities listed below. When I run a load test that creates, reads and updates these entities in multithreaded application  | |
Remove a modified entity cause an optimistic lock exception Hello, the following examples load and modify an entity , and load and remove the same entity ... ). Can you explain the optimistic lock exception? It seems that the first level cache contains yet a dirty entity ... bundles, entity classes, JPA wrappers, etc.) support Support I created a minimum OSGi example | |
Running doctor.jar with entity classes in classhpath Hi, I am wondering how to populate new entity classes to database file, so that I could add new instances of these entities to database through explorer. I tried to run com.objectdb.Doctor with model.jar (my entity classes in it) in classpath but it doesn't work (new entities still dont show up in | |
@Entity saved in Tomcat session - problem Hi, I have found a problem, when storing @ Entity object in Tomcat session. When starting or ... is to create copy of @ Entity class as normal POJO and use it to store in session. The problem ... on this? lwalkowski Lukasz Walkowski The exception indicates an attempt to serialize an entity object (when Tomcat | |
Entity name creation I created a class named EBResult which looks like this: @ Entity (name="RESULT") public class ... library) I expected to see an object named "RESULT" due to class annotation @ Entity (name="RESULT"). Instead I see following: 2.1. Why? Is the @ Entity (name="RESULT") ignored by ObjectDB? 2.2 | |
How prevent post-compile enhancement of non entity classes the enhancer on entity files. For full project build the following works, by grouping entities ... the enhancer on non- entity files: Ant has a selector system (https://ant.apache.org/manual/Types/selectors ... ), so one could select on files containing @ entity , but I can't find how to combined with the task | |
JPA Query API is not yet known as a managed entity class . In this case, only the TypedQuery variant is valid | |
Query Parameters in JPA, parameters are more flexible and support elements that are unavailable as literals, such as entities . API | |
jakarta.persistence.PessimisticLockException PessimisticLockException ( Object entity ) Constructs a new PessimisticLockException exception with the specified entity . Parameters: entity - the entity . Since: Jakarta Persistence (JPA) 1.0 PessimisticLockException ( String message , Throwable cause , Object entity ) Constructs a new PessimisticLockException | |
jakarta.persistence.ManyToOne: Annotation Target: Method, Field Specifies a single-valued association to another entity class that has many-to-one multiplicity. It is not usually necessary to specify the target entity explicitly ... is bidirectional, the non-owning OneToMany entity side must use the mappedBy element to specify | |
jakarta.persistence.Embeddable entity , sharing the identity of the entity . A single embeddable type may be used as the type of multiple persistent fields or properties, across several entities , and so distinct instances of an embeddable type might have owning entities of completely unrelated entity types. The annotated type | |
jakarta.persistence.Version: Annotation Target: Method, Field Declares the version field or property of an entity class ... field or property holds a version number or timestamp identifying the revision of the entity data held by an entity class instance. An optimistic lock failure occurs when verification of the version | |
Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config works correctly we add ALL entity classes to this product. Because we will prevent a data loss ... the ProfileMigration and to provide for the ProfileMigration application also a plugin which contains the entity ... EmbeddedSystems Hello, we got now an exception in a use case in which we removed an entity . Exception in | |
jakarta.persistence.InheritanceType , Serializable Enumerated the options for mapping entity inheritance. See Also: Inheritance.strategy Since: Jakarta Persistence (JPA) 1.0 Enum Constants JOINED A table for each abstract or concrete entity class, with only the columns mapped to persistent fields and properties declared by the entity class. Each | |
jakarta.persistence.EmbeddedId of an entity class or mapped superclass is the composite primary key of the entity . The type of the annotated ... . If a field or property of an entity class is annotated EmbeddedId , then no other field or property of the entity may be annotated Id or EmbeddedId , and the entity class must not declare an IdClass | |
jakarta.persistence.criteria.Subquery entity , forming a cartesian product with any existing roots. Inherited from AbstractQuery Parameters: entityClass - the entity class Returns: query root corresponding to the given entity . Since: Jakarta Persistence (JPA) 1.0 Root from ( EntityType entity ) Create and add a query root corresponding | |
Removed entities can be found by query in the same transaction Hello, we opened a transaction, load an entity from database and removed this entity by em.remove(). Afterwards the entity can be load again by query although the resulted entity have an attribute __odbtracker/m (type STA, value=Persistent-Deleted-Flushed) which shows that the entity is deleted | |
Query in nested transaction returns detached entity if lazy-loaded != null); The entity is detached and data is not loaded lazily from the database. We've also found ... then we get another issues in our test suites. We worked on enhanced classes. We activated the entity listeners for pre persisted and post persisted in order to check the entity version number. For example | |
Eager Fetch of Map with Entities as Keys Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals and hashCode methods of the keys are based on the key entity persistent content, since that content ... ; MyEntity entity = new MyEntity();   | |
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 | |
References to objects of missing obsolete entity classes: When we migrate our product profiles, we get an exception regarding entities that were removed in an earlier version of our product (see below). These entities are not present in the database and the error does ... (enhanced) entity class in your project for that obsolete entity class. support Support | |
Unexpected exception when execute query without enhanced entities ObjectDB 2.8.7.b08 Our entities are not enhanced and we execute a query "select max(uid) from ... an exception with a message like "the entities are not enhanced ..." instead of the UserException: Unexpected query token 'uid'. If the entities are enhanced then the query works without exception. btc | |
Unexpected error when loading all entity instance Hi, when going through all entity instance to find orphaned entries we get the exception ... ) at com.objectdb.o.QRR.f(QRR.java:222) What we do: 1. Create a transaction and load 10.000 entity instances 2. Check for each entity instance if it is references using queries (select from where field | |
Feature suggestion: auto-detection of entities via persistence.xml extension I am encountering problems (complexities) with EntityManager registration of entities across multiple modules in a multi-module Maven project. I have a entities under many different paths in ... to introduce such an entity -scanning extension feature in ObjectDB ? Q2: Does it make any difference | |
ArrayIndexOutOfBoundsException with enhanced Entity Hi! We have an two entities , the first one is something like: @Embeddable class TestEmbed {...} and the second one: @ Entity class TestEntity { private TestEmbed myEmbed = null; public TestEmbed ... only with an embeddable entity embedded within another embeddable entity like: @Embeddable class Embed | |
Getting Started with JPA This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple Point entities , where each Point has two persistent fields - x and y . If you already know JPA - the source code will be straightforward | |
Step 3: Define a Spring DAO Component - for storing a new Guest entity in the database. getAllGuests - for retrieving all the existing  |