ObjectDB Database Search
101-150 of 200 resultsEntityManager refresh problem Hi, in the following code you can see an example with EntityManager .refresh(). The example ... -------------------- package example; import java.io.File; import javax.persistence. EntityManager ; import ... ; public void refreshTest() { EntityManager | |
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 | |
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 ... ; EntityManager holds is not preserved or reused. Is may be worth reusing these caches as well in some | |
EntityManagerFactory objects being locked during EntityManager creation wherein the EntityManagerFactory objects are being locked during EntityManager object creation. Please refer ... with ObjectDB wherein the EntityManagerFactory objects are being locked during EntityManager object creation. This is the normal behavior of ObjectDB. Creation operations of EntityManager | |
Object belongs to another EntityManager - ERROR' belongs to another EntityManager (error 613) 10:29:14,887 ERROR [stderr] (http--10.23.3.98-8081-5 ... to another EntityManager 10:29:15,072 ERROR [stderr] (http--10.23.3.98-8081-5) at com.objectdb.o ... 'pbdmodel.impl.OrgJedinicaImpl#8' belongs to another EntityManager 10:29:15,089 ERROR [stderr] (http--10.23 | |
EntityManager JPA or JDO impl and different behavior Hi, I have an issue with the EntityManager . My persistance XML looks like: com.objectdb.jpa.Provider Now in our project we use spring to start everything. If I do: System.out.println(" EntityManager ... , I get: com.objectdb.jdo.PMImpl Whats going on here? Is the entityManager not controlled by | |
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 ... .o._PersistenceException: Attempt to execute a query using a closed EntityManager at org.apache.el | |
EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs. EntityManager ; import javax.persistence.TypedQuery; /** * @author Stanislav Jakuschev 28.02.2023 * * EntityManager .find(entityClass, primaryKey) is slow when accessing * non-existent IDs. * * Select queries ... "XId [a=" + a + ", b=" + b + ", c=" + c + "]"; } } public static void clear( EntityManager em) { Instant | |
Suspected memleak caused by bad state of EntityManager Our application manages the Entities itself, so we close the EntityManager after every creating ... and finalize, we found the problem is caused by bad state of EntityManager . After first throwing the InternalException, the EntityManager throws every time when doing merge operation, but it can be closed | |
creating EntityManager on odb file created on Mac 64bit on Windows 32bit an EntityManagerFactory and later EntityManager on this file, every thing is working fine ... EntityManager . Do you have any idea why does it crash? Thanks, Marcin marcins Marcin ObjectDB uses ... . But still the code crashes while creating EntityManager on this odb file. And the program | |
EntityManager to closed Hi I understand we should close the entitymanager after each use, and close the factory ... server mode. I am just running some test cases and opened up 100 entitymanager via factory ... , at least for a while). The issue with not closing EntityManager and EntityManagerFactory instances | |
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 | |
Issue with orphanRemoval and multiple EntityManagers with orphanRemoval set to true. I use a new EntityManager for each transaction (which normally happens in ... entity, the database contains 3 child entities. If I use the same EntityManager for both transactions ... ; EntityManager em = emf.createEntityManager();   | |
EntityManager getMetamodel() causes crash I am trying to track down some obscure errors with multi-threading. This involved looking at the EntityManager Metamodel but this caused an ObjectDB exception. So I reverted ... ;password=admin;drop" EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); MyEntity | |
EntityManager creation taking long time In our production environment, entity manager creation, the line below, sometimes take upto few ten's of seconds to create. Is there any reason that is known which may be causing this ? Any suggestions on how this can be addressed ? EntityManager entityManager = factory.createEntityManager | |
Eclipse4 RCP - No Persistence provider for EntityManager.PersistenceException: No Persistence provider for EntityManager I'm using the latest ObjectDB 2.6.2.b03 ... only this way (i.e. between building an EntityManagerFactory to building an EntityManager | |
EntityManager.refresh takes a long time EntityManager .refresh takes a long time for entity object Person in this code: logger.log(Level.INFO, "begin select for person " + new Date().toString());   ... level; Does i understand this term correctly, if try to refresh Entitymanager updates | |
JPA - ExceptionInInitializerError when creating EntityManager); //OUTPUT: EMF: org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl@ffa7e1 EntityManager emTemp ... "); javax.persistence. EntityManager em = emf | |
javax.persistence.PersistenceException: No Persistence provider for EntityManager named in Karaf 4.0.7 and OSGi DS test.persistence.PersistenceException: No Persistence provider for EntityManager named objectdb | |
EntityManager.merge gives EntityNotFoundException Just started using objectdb (2.3.4). Calling EntityManager .merge for a new (non-managed) object gives EntityNotFoundException. I am perplexed by this. See attached test case. Thanks for your assistance. Full error output is: Exception in thread "main" [ObjectDB 2.3.4] javax.persistence | |
Executing JUnit "all tests" throws "Object ... belongs to another EntityManager" Exception.Symbol#7' belongs to another EntityManager [Symbol:7] When I change the order in which the test runs (by | |
multi EntityManager with Spring Boot, but 'Too many persistable types (>10) I'm trying to use two EntityManager with Spring Boot, but no luck with 'Too many persistable types (10) - exceeds evaluation limit' at second database. My purpose is converting database (converting model entity. same class name but different package). Single application with Spring-Boot 2.1.8 | |
"No Persistence provider for EntityManager" in OSGI bundle. provider for EntityManager named $objectdb/myDB.odb at javax.persistence.Persistence | |
Creation of several EntityManager is slowerCreation of several EntityManager is slower | |
Accessing objects to make them available after EntityManager close?!Accessing objects to make them available after EntityManager close?! | |
JPA Criteria API Queries the EntityManagerFactory 's getCriteriaBuilder method or by the EntityManager 's getCriteriaBuilder method | |
jakarta.persistence.EntityNotFoundException by the persistence provider when an entity reference obtained by EntityManager .getReference is accessed but the entity does not exist. Thrown when EntityManager .refresh is called and the object no longer exists in the database. Thrown when EntityManager .lock is used with pessimistic locking is used | |
jakarta.persistence.PersistenceConfiguration(); } Similarly, if injection of an EntityManager is required, a CDI Producer method/ Disposer method pair may be used to make the EntityManager available as a CDI managed bean. @Produces @TransactionScoped @Documents EntityManager create(@Documents EntityManagerFactory factory) { return factory | |
jakarta.persistence.EntityGraph. See Also: AttributeNode Subgraph NamedEntityGraph EntityManager ::createEntityGraph(Class) EntityManager ::createEntityGraph(String) EntityManager ::getEntityGraph(String) EntityManagerFactory::addNamedEntityGraph(String, EntityGraph) EntityManager ::find(EntityGraph, Object, FindOption...) Since: Jakarta | |
jakarta.persistence.NamedQuery. Query names are scoped to the persistence unit. A named query may be executed by calling EntityManager ... this: @PersistenceContext EntityManager em; ... List customers = em.createNamedQuery("findAllCustomersWithName ... used to identify the query in calls to EntityManager .createNamedQuery . Since: Jakarta Persistence | |
jakarta.persistence.OptimisticLockException, will be marked for rollback. See Also: EntityManager ::find(Class, Object, LockModeType) EntityManager ::find(Class, Object, LockModeType, java.util.Map) EntityManager ::lock(Object, LockModeType) EntityManager ::lock(Object, LockModeType, java.util.Map) Since: Jakarta Persistence (JPA) 1.0 Public | |
jakarta.persistence.NamedEntityGraph. A reference to a named entity graph may be obtained by calling EntityManager .getEntityGraph , and may be passed to EntityManager .find . Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String name (Optional) The name used to identify the entity graph in calls to EntityManager .getEntityGraph | |
jakarta.persistence.FindOption Jakarta Persistence (JPA) Interface jakarta.persistence.FindOption An option influencing the behavior of EntityManager .find . Built-in options control locking , cache interaction , and timeouts ... Timeout EntityManager ::find(Class, Object, FindOption...) EntityManager ::find(EntityGraph, Object, FindOption...) Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.CacheRetrieveMode , Comparable , Serializable Specifies how the EntityManager interacts with the second-level cache when data is read from the database via the EntityManager .find methods and execution of queries. USE indicates ... .retrieveMode . See Also: EntityManager ::setCacheRetrieveMode(CacheRetrieveMode) Query::setCacheRetrieveMode | |
jakarta.persistence.NamedNativeQuery may be executed by calling EntityManager .createNamedQuery . In simple cases, a resultClass specifies ... Annotation Elements String name The name used to identify the query in calls to EntityManager ... class may be overridden by explicitly passing a class object to EntityManager .createNamedQuery | |
jakarta.persistence.Persistence of the persistence unit Returns: the factory that creates EntityManager s configured according ... EntityManager s configured according to the specified persistence unit. Since: Jakarta Persistence (JPA) 1.0 ... EntityManager s configured according to the specified persistence unit. Since: Jakarta Persistence (JPA) 3 | |
An entityManager.flush() with many entities is not possible The following exception occures if we call entityManager .flush() where the corresponding JPA PersistenceContext has many entities and relations. What is the reason for the exception? entityManager .getTransaction().commit() instead of a entityManager .flush() works correctly. Unfortunately I | |
DB persist operation results are not available for another Thread/EntityManager immdiately Hello, we have following situation: The EntityManagerFactory is always opened and won't be closed. Thread A with its own EntityManager persists entities and commits the entities successfully. Thread B runs afterwards also with its own EntityManager and tries to load the persisted entities by | |
jakarta.persistence.EntityManagerFactory.runInTransaction(Consumer) ( Consumer work ) Create a new application-managed EntityManager with an active transaction, and execute the given function, passing the EntityManager to the function. If the transaction ... with the caller, then the EntityManager is associated with this current transaction. If the given function | |
jakarta.persistence.EntityManagerFactory.callInTransaction(Function) ( Function work ) Create a new application-managed EntityManager with an active transaction, and call the given function, passing the EntityManager to the function. If the transaction type ... , then the EntityManager is associated with this current transaction. If the given function returns | |
InternalException during EntityManager.find()InternalException during EntityManager.find() | |
jakarta.persistence.EntityManagerFactory.createEntityManager() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManagerFactory EntityManager createEntityManager() Create a new application-managed EntityManager . This method returns a new EntityManager instance each time it is invoked. The EntityManager .isOpen method will return true | |
jakarta.persistence.EntityManagerFactory.createEntityManager(Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManagerFactory EntityManager createEntityManager ( Map map ) Create a new application-managed EntityManager with the given Map specifying property settings. This method returns a new EntityManager instance each time | |
jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManagerFactory EntityManager ... -managed EntityManager with the specified synchronization type. This method returns a new EntityManager instance each time it is invoked. The EntityManager .isOpen method will return true on the returned | |
jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType,Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManagerFactory EntityManager ... a new JTA application-managed EntityManager with the specified synchronization type and map of properties. This method returns a new EntityManager instance each time it is invoked. The EntityManager | |
jakarta.persistence.FlushModeType Enumerates flush modes recognized by the EntityManager . When queries are executed ... transaction, the persistence provider must not flush to the database. See Also: EntityManager | |
jakarta.persistence.LockOption Jakarta Persistence (JPA) Interface jakarta.persistence.LockOption An option influencing the behavior of EntityManager .lock . Built-in options control scope , and timeouts . This interface ... . See Also: LockModeType PessimisticLockScope Timeout EntityManager ::lock(Object, LockModeType, LockOption...) Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.EntityExistsException the persistence provider when EntityManager .persist is called and the entity already exists ... . See Also: EntityManager ::persist(Object) Since: Jakarta Persistence (JPA) 1.0 Public Constructors | |
jakarta.persistence.CacheStoreMode , Constable , Comparable , Serializable Specifies how the EntityManager interacts with the second-level cache ... .storeMode . See Also: EntityManager ::setCacheStoreMode(CacheStoreMode) Query::setCacheStoreMode | |
jakarta.persistence.RefreshOption Jakarta Persistence (JPA) Interface jakarta.persistence.RefreshOption An option influencing the behavior of EntityManager .refresh . Built-in options control locking , cache interaction ... EntityManager ::refresh(Object, RefreshOption...) Since: Jakarta Persistence (JPA) 3.2 |