Internal Website Search

101-150 of 200 results

Update Entity references if we change the type of an entity

Hello, we must change (extend) our entity model and therefor we convert the type of some entities ... . But now we introduced as example a new Entity NewKindOfEntityB. And we have a defined logic how we detect the existing EntityB instances they must be converted to the new Entity . With the same ID

Type ... is not defined as an entity (@Entity is missing) (error 302)

.lab.data.bacti.CultureRqst is not defined as an entity (@ Entity is missing) (error 302) at com ... fine ( @PersistenceCapable and @ Entity are equivalent - but you may try adding also @ Entity ... " [ObjectDB 2.6.4_07] javax.jdo.JDOUserException Type java.util.ArrayList is not defined as an entity

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity . It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity .   It would be very helpful if you can add a few information

can removing an entity throw an exception if the entity is in use?

Suppose you have an entity @ Entity class A { ... } and other entities with references to A.   e.g. @ Entity class B { A a; // explicit reference to A List list; // list of A's Set set ... Support Is there a query that can return all Objects (@ Entity and/or @Embedded) that include any

List managed entities for a given entity manager

Hi, Is there a way to find the number of managed entities given an entity manager? My application has some memory leaks - I am doing clear() on the entity manager(s) but may be I forgot some - so if there is a way to know how many entities are managed by each my entity mgr - it would be helpful

find out if an entity is refered by other entities

Hello, it is possible to find out if a child entity is just referenced by other parent entity types. But the types of the parent entities are unknown. Is there a possibility to find out if an entity is referenced? best regards btc_es BTC EmbeddedSystems You can only find it (using a query

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

.8_06 All our entities are enhanced. There are nested entities in following hierarchy: @ Entity ... ? support Support No, there are only entities involved. Have you an idea why this issue occurs? We try

Entity 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

Privacy Policy

the company, or other legal entity on behalf of which such individual is accessing or using the Service

WHERE clause (JPQL / Criteria API)

that index to iterate directly on Country objects that satisfy the WHERE predicate. For entity classes

JPA Query API

yet and the  Country class is unknown as a managed entity class  - only the TypedQuery

Query Parameters in JPA

elements that are unavailable as literals, such as entity objects. API Parameter Methods Over half

ObjectDB 2.9 Developer's Guide

;      Shows how to define JPA entity classes that can be persisted in

Database Connection using JPA

. However, by default, the in-memory instance of the managed entity is not affected by the rollback

JPA Annotations for Relationships

Relationships are persistent fields in persistable classes that reference other entity objects. The four relationship modes are represented by the following annotations: Unlike ORM JPA implementations, ObjectDB does not enforce specifying any of the annotations above. Specifying a relationship

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations: Chapter 2 of the ObjectDB manual explains these annotations in detail. Entity and mapped super classes can be further configured by annotations that specify cache preferences and lifecycle event listener

GROUP BY and HAVING clauses

can be applied to entity objects directly. Other aggregate functions are applied to fields of objects in

Criteria Query From Elements

variables (bound by an entity class) are represented by the Root subinterface: Join variables (bound by

Removing of an entity removes also another entity type

Hello, we have following case: All entities must be enhanced, because see Issue #303. ToleranceDefinition and ResolverMapping are entities and have not any relations each other. Before start transaction the ToleranceDefinition entities exist already in the database. The transaction starts

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

a transaction (including the entity manager) the ODB file writer still holds a reference to entities . Performing similar calls repeatedly hence increases the number of references to entities not longer needed ... that all your classes are enhanced. The screenshot indicates using some entity objects ( MappingImpl

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

Step 1: Create a Maven Web Project

Framework and ObjectDB/JPA support. The next step is  creating a JPA Entity class .

Step 1: Create a Java Project

with ObjectDB/JPA support. The next step is creating a JPA Entity class .

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 entity objects, 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 object in the database. getAllGuests

Step 3: Define a Spring DAO Component

- for storing a new  Guest entity object 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 entity objects, where each  Point has two persistent fields -  x and  y . If you already know JPA - the source code

Step 3: Define a Spring DAO Component

- for storing a new  Guest entity object in the database. getAllGuests - for retrieving

Step 1: Create a Java EE Web Project

Application project with ObjectDB/JPA support. The next step is creating a JPA Entity class .

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 object in the database

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 entity objects, where each  Point has two persistent fields

Step 4: Create an ObjectDB Data Set

this tutorial contains Point entity objects. We will use a simple JPQL query that retrieves points with x

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