ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh

UserException - Object User#2 belongs to another EntityManager

EntityManager with the same unitName. TradesC method needs an User, which is taken from UserDataB ... .pingushare.entity.p1.User#2' belongs to another EntityManager at com.objectdb.o.MSG.d(MSG.java:61 ... this should be a problem if, in the same transaction, an entity is passed into more EntityManagers, but here are 2

EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs

.persistence.EntityManager; import javax.persistence.TypedQuery; /** * @author Stanislav Jakuschev 28.02.2023 * * EntityManager.find(entityClass, primaryKey) is slow when accessing ... (EntityManager em) { Instant t = now(); em.clear(); out.println("clear\t

Pooling of EntityManagers

an internal pool of connections, and when an EntityManager is closed the underlying socket to the server is returned to the pool and can be reused with another new EntityManager, as this is the most expensive resource. However, the persistence context, i.e., the first level cache that an EntityManager holds

Object belongs to another EntityManager - ERROR

#8' belongs to another EntityManager (error 613) 10:29:14,887 ERROR [stderr] (http-- ... .UserException: Object 'pbdmodel.impl.OrgJedinicaImpl#8' belongs to another EntityManager 10:29:15,072 ... #8' belongs to another EntityManager 10:29:15,089 ERROR [stderr] (http-- at com

EntityManager JPA or JDO impl and different behavior

Hi, I have an issue with the EntityManager. My persistance XML looks like: <?xml version="1.0 ... we use spring to start everything. If I do: System.out.println("EntityManager Name: " + em.getClass ... .jdo.PMImpl Whats going on here? Is the entityManager not controlled by the persistance.xml or

EntityManagerFactory objects being locked during EntityManager creation

objects are being locked during EntityManager object creation. Please refer the below stacktrace ... wherein the EntityManagerFactory objects are being locked during EntityManager object creation. This is the normal behavior of ObjectDB. Creation operations of EntityManager instances were always serial because they lock

Attempt to execute a query using a closed EntityManager

. com.objectdb.o.UserException - Attempt to execute a query using a closed EntityManager at com ... to execute a query using a closed EntityManager at org.apache.myfaces.view.facelets.el ... EntityManager at org.apache.el.parser.AstValue.invoke(AstValue.java:291) at org.apache.el

Accessing objects to make them available after EntityManager close?!

"); EntityManager em = emf.createEntityManager(); TypedQuery<Vifr_dic> query = em.createQuery("SELECT w ... objects? Many thanks mmmndt2015 Thi Nguyen Closing the EntityManager changes the state of the managed ... when the EntityManager when it was open are available (and references to unloaded objects are null). Accessing

Metamodel Attribute NOT EQUALS to same Attribute in a different EntityManager

from Metamodel of a differente EntityManager initialized on a @Controller @RequestMapping event. I ... is it: If I have two moments of initialization of "javax.persistence.metamodel" from EntityManager and these two metamodels come from different EntityManagers. One of these is on a @PostConstruct event


the entity objects into an EntityManager. Removing these objects from the EntityManager within an active ... them, but it should be used cautiously because bypassing the EntityManager may break its synchronization with the database. For example, the EntityManager may not be aware that a cached entity object in its persistence

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