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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
JPA Metamodel Attributes
The Jakarta Persistence (JPA) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the attributes of managed persistent types ( entities , embeddable and superclasses). Metamodel Attributes Hierarchy in Jakarta Persistence (JPA) 3. Base attribute definitions
|
|
Privacy Policy
the company, or other legal entity on behalf of which such individual is accessing or using the Service
|
|
JPA Value Generation Annotations
should be automatically generated when a new entity is persisted to the database. It allows defining
|
|
WHERE clause (JPQL / Criteria API)
that satisfy the WHERE predicate. For entity classes with millions of objects in the database
|
|
Obtaining a JPA Database Connection
that modify database content, such as storing, updating, and deleting entities , must be performed
|
|
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
|
|
ObjectDB 2.9 Developer's Guide
programming using ObjectDB and JPA. Shows how to define JPA entity classes that can be persisted in
|
|
JPA Connections and Transactions
of managed entities or revert them to their pre-modified state. Committing a transaction propagates
|
|
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.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
|
|
jakarta.persistence.LockModeType
which may be obtained on an entity instance. A specific lock mode may be requested by passing an explicit LockModeType ... .OPTIMISTIC on a versioned object, the entity manager must ensure that neither of the following ... (increment) to the entity's version column. The persistence implementation is not required to support
|
|
Step 1: Create a Maven Web Project
MVC Framework and ObjectDB/JPA support. The next step is creating a JPA Entity class .
|
|
Getting Started with JPA and Eclipse
This is the Eclipse version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve simple Point entities , where each Point has two persistent fields: x and y
|
|
Step 1: Create a Java EE 6 Web Project
: You should now have an Eclipse Java EE 6 project with ObjectDB/JPA support. The next step is creating a JPA Entity class .
|
|
Step 3: Define an EJB Session Bean
: persist - for storing a new Guest entity in the database. getAllGuests - for retrieving
|
|
Step 3: Define a Spring DAO Component
- for storing a new Guest entity in the database. getAllGuests - for retrieving all the existing 
|
|
Step 4: Add a Controller Class
has registered (using a JSP form that will be added in the next tutorial step) - a new Guest entity
|
|
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 
|
|
Step 1: Create a Java EE Web Project
Application project with ObjectDB/JPA support. The next step is creating a JPA Entity class .
|