ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
115

Remove an entity which attributes were changed - OptimisticLockException

and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes ... exception of the removed entity. If this operations on the entity are executed in only one plugin ... will be removed, if we use three OSGi plugins. btc_es BTC EmbeddedSystems The difference between using one plugin
112

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
111

Remove not working

] - 226 (removed in current transaction) at com.objectdb.o.JPE.g(JPE.java:94) at com.objectdb.o.ERR.f ... .TVS.g(TVS.java:105) at com.objectdb.o.TVS.g(TVS.java:93) at com.objectdb.jpa.EMImpl.remove(EMImpl ... {         Unit byName = unitDAO.findByName("6ff4b08a");         em.remove(byName);     } The unit
111

remove & persist in same transaction => Attempt to reuse an existing primary key value

(another table). On this point we get no conflicts. If we remove additional data for Entity (B) and then the special Entity (A) is empty, we remove the special Entity (A). If we add additional data for Entity (B ... transaction: first remove additional Data -> The special Entity (with id 1) is empty and we remove
61

remove(entity)

Method javax.persistence.EntityManager void remove( Object entity ) Remove the entity instance. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException - if invoked on a container-managed entity
61

CascadeType.REMOVE

Enum Constant javax.persistence.CascadeType REMOVE Cascade remove operation Since: JPA 1.0
42

Deleting JPA Entity Objects

Existing entity objects can be deleted from the database either explicitly by invoking the remove method or implicitly as a result of a cascade operation. Explicit Remove In order to delete an object ... transaction, it can be deleted using the remove method: Employee employee = em.find(Employee.class, 1
30

Removing of an entity removes also another entity type

. All ResolverMapping entities are removed by a query (DELETE FROM ...), afterwards ResolverMapping entities ... with a result and after that a ToleranceDefinition entity is removed from database by entitymanager.remove(obj). Directly after remove we try to retrieve again the ResolverMapping entities from
30

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

Hello, we got now an exception in a use case in which we removed an entity. Exception in thread "main ... that we can access the persisted objects of the 'removed' entity. And now we are a little bit confused, because we thought that the instances are removed if we remove the entity class. In the past
21

Issue with cascade delete & add/remove

. However, when removing an Address from the collection and immediately adding it again to the collection (within one transaction!) then the Address entity is yet removed from the database, eventhough ... to clear the collection first, commit that and then remove the Contact? thanks! quasado Alexander Adam

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support