ObjectDB Database Search
151-200 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 | |
Remove an entity which attributes were changed - OptimisticLockException 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 | |
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 | |
Problem with entities detection, one with PostgreSQL, and another with ObjectDB. My problem is with some entities ... is that ObjectDB seems to be ignoring the class fields on the persistence.xml file. Entities need to be in the same package when I called my DAO to be stored successfuly. If the entity is in another package | |
Extra uninitialised entities spawned on merge() In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List ownedElements , and Example is a subclass entity with a relationship ... ; emf.close(); } @ Entity   | |
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 | |
Method Invocation On All Entities Deleting or changing a field of all the entities of some type is fairly easy, using the DELETE ... some method on all persisted entities of some type? For instance, suppose every entity object ... all those entities . It could be usefull if we could invoke some "doBeforeDie" method before the deletion | |
Is it ok to put list or map of embeddable objects in entity ? Hi, Is it ok to put list or map of embeddable objects in entity ? I mean, for example : @ Entity public class Entity _A { (...) @Embedded List ... instance of embeddable class in entity . And what happens if I do operation like : entA.setBList(new | |
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 | |
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 ... ' is an java.util.ArrayList and it contains multitple entities with an the same id. the behavior | |
Items in list are doubled, when the entity class is not enhanced Dear all, I have a problem with adding items ( entities ) into other entity list. When the classes are not enhanced, added items are doubled. Here is an example: @ Entity public class Customer ... itemList; ... getters and setters } @ Entity public class Item implements Serializable { private | |
Weird behaviour with enhanced classes and embedded entities entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing ... ; import javax.persistence.Embeddable; import javax.persistence. Entity ; import javax.persistence | |
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 | |
Bulk update of embedded entities in linked list Hi, I'm trying to do a bulk update of a column in an embedded entity , but I end up with a query execution error because of the "." between the column name of the parent entity and column name of the child entity . The column in the parent entity represents a linked list of an embeddable class | |
JPA Criteria Query Selection and Results, such as an entity , an attribute, or a computed expression. Because Selection is a superinterface | |
GROUP BY and HAVING clauses aggregate function can be applied directly to entities . Other aggregate functions must be applied | |
jakarta.persistence.OneToMany. If the collection is defined using generics to specify the element type, the associated target entity type need not be specified; otherwise the target entity class must be specified. If the relationship ... of the entity that is the owner of the relationship. A OneToMany association usually maps a foreign | |
jakarta.persistence.PessimisticLockScope owned by the entity that are contained in join tables are locked if the property jakarta.persistence.lock.scope is specified with a value of PessimisticLockScope#EXTENDED . The state of entities referenced by such relationships is not locked (unless those entities are explicitly locked). Locking | |
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 | |
jakarta.persistence.criteria.AbstractQuery directly in query construction. All queries must have: a set of root entities (which may in turn ... to the given entity , forming a cartesian product with any existing roots. Parameters: entityClass - the entity class Returns: query root corresponding to the given entity . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.OptimisticLockException OptimisticLockException ( Object entity ) Constructs a new OptimisticLockException exception with the specified entity . Parameters: entity - the entity . Since: Jakarta Persistence (JPA) 1.0 OptimisticLockException ( String message , Throwable cause , Object entity ) Constructs a new | |
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 | |
jakarta.persistence.criteria.CriteriaQuery corresponding to the given 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 | |
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 | |
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();   | |
Step 1: Create a Web Project: Now you should have an Eclipse Dynamic Web project with ObjectDB/JPA support. The next step is creating a JPA Entity class . | |
Step 1: Create a Java Project JARs... The next step is creating a JPA Entity class . | |
Step 3: Define an EJB Session Bean) class defines two methods: persist - for storing a new Guest entity in the database. getAllGuests | |
Getting Started with JPA and NetBeans This is the NetBeans version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in NetBeans. The demonstrated application uses JPA to store and retrieve simple Point entities , where each Point has two persistent fields -  | |
Step 4: Create an ObjectDB Data Set this tutorial contains Point entities . We will use a simple JPQL query that retrieves points with x value in | |
Step 1: Create a Web Project with ObjectDB/JPA support. The next step is creating a JPA Entity class . | |
[ODB1] Chapter 7 - JDOQL Queries to the this reference. Persistent fields of any entity that represents a persistent object can be accessed |