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?! | |
Online Backup. Starting Online Backup The online backup can be started by executing a special query on an EntityManager | |
Updating JPA Entity Objects entity object from within an active transaction. No EntityManager 's method is invoked to report | |
ObjectDB Object Database Features (per EntityManager ). L2 shared entity data cache (per EntityManagerFactory). Database file page cache | |
JPA Criteria API Queries the EntityManagerFactory 's getCriteriaBuilder method or by the EntityManager 's getCriteriaBuilder method | |
InterfaceRef jakarta.persistence.EntityManagerFactory with the persistence unit, and to create new instances of EntityManager . A persistence unit defines ... EntityManager may be created via a call to () . However, this approach places complete responsibility ... . It is much safer to use the methods runInTransaction and callInTransaction to obtain EntityManager s | |
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 | |
InternalException during EntityManager.find()InternalException during EntityManager.find() | |
ClassRef jakarta.persistence.EntityNotFoundException 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 and the entity no longer exists in | |
EntityManagerFactory.runInTransaction(work) - JPA Method;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 type ... , then the EntityManager is associated with this current transaction. If the given function throws an exception | |
EntityManagerFactory.callInTransaction(work) - JPA Method 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 without throwing | |
EntityManagerFactory.createEntityManager() - JPA Method 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 on the returned instance. Return | |
ClassRef jakarta.persistence.OptimisticLockException. See Also: EntityManager .find EntityManager .find EntityManager .lock EntityManager .lock Since: JPA 1.0 Public Constructors | |
EntityManagerFactory.createEntityManager(synchronizationType) - JPA Method JPA Method in jakarta.persistence.EntityManagerFactory EntityManager createEntityManager (   ... 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 instance | |
EntityManagerFactory.createEntityManager(synchronizationType,map) - JPA Method JPA Method in jakarta.persistence.EntityManagerFactory EntityManager createEntityManager (   ... 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 .isOpen | |
EntityManagerFactory.createEntityManager(map) - JPA Method 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 it is invoked | |
InterfaceRef jakarta.persistence.EntityGraph NamedEntityGraph EntityManager .createEntityGraph EntityManager .createEntityGraph EntityManager .getEntityGraph EntityManagerFactory.addNamedEntityGraph EntityManager .find Since: JPA 2.1 Public Methods | |
EntityManagerFactory.createEntityManager(synchronizationType,map) - JPA Method JPA Method in javax.persistence.EntityManagerFactory EntityManager createEntityManager (   ... 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 isOpen method | |
EntityManagerFactory.createEntityManager(map) - JPA Method JPA Method in javax.persistence.EntityManagerFactory EntityManager createEntityManager ( Map map ) Create a new application-managed EntityManager with the specified Map of properties. This method returns a new EntityManager instance each time it is invoked. The isOpen method | |
InterfaceRef jakarta.persistence.FindOption JPA Interface FindOption An option influencing the behavior of EntityManager .find . Built-in options control plain, plain, and plain. This interface may be implemented by custom provider-specific ... PessimisticLockScope CacheRetrieveMode CacheStoreMode Timeout EntityManager .find EntityManager .find Since: JPA 3.2 | |
ClassRef jakarta.persistence.Persistence: the factory that creates {@link EntityManager } s configured according to the specified persistence unit ... - the name of the persistence unit Return: the factory that creates {@link EntityManager } s ... that creates {@link EntityManager } s configured according to the specified persistence unit Since: JPA 1.0 | |
EnumRef jakarta.persistence.CacheRetrieveMode.CacheRetrieveMode Implemented Interfaces: FindOption Specifies how the EntityManager interacts with the second-level cache when data is read from the database via the EntityManager .find methods ... jakarta.persistence.cache.retrieveMode . See Also: EntityManager .setCacheRetrieveMode Query | |
AnnotationRef jakarta.persistence.NamedStoredProcedureQuery that is passed as an argument to the EntityManager .createNamedStoredProcedureQuery method to create an executable ... with the EntityManager methods that create stored procedure query objects. Since: JPA 2.1 StoredProcedureParameter | |
EntityManagerFactory.addNamedQuery(name,query) - JPA Method query as a named query such that future query objects can be created from it using the EntityManager .createNamedQuery or EntityManager .createNamedStoredProcedureQuery methods. Any configuration | |
AnnotationRef jakarta.persistence.PersistenceContext JPA Annotation PersistenceContext Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Expresses a dependency on a container-managed EntityManager and its associated persistence context ... of the EntityManager .joinTransaction method. Since: JPA 2.1 PersistenceContextType type default PersistenceContextType |