ObjectDB ObjectDB

Internal Website Search

51-60 of 200 resultsRefresh
91

EntityManager refresh problem

Hi, in the following code you can see an example with EntityManager.refresh(). The example throws ... -------------------- package example; import java.io.File; import javax.persistence.EntityManager; import ... void refreshTest() {         EntityManager entityManager = null;         try
90

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
89

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
87

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
84

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
84

Object belongs to another EntityManager - ERROR

#8' belongs to another EntityManager (error 613) 10:29:14,887 ERROR [stderr] (http--10.23.3.98-8081 ... .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--10.23.3.98-8081-5) at com
84

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
84

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
19

Retrieving JPA Entity Objects

. Given an EntityManager em, the following code fragment demonstrates the retrieval of an Employee ... if the specified class is not an entity class. If the EntityManager already manages the specified ... method except that if the entity object is not already managed by the EntityManager a hollow object
17

DELETE Queries in JPA/JPQL

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