ObjectDB Database Search

1-28 of 28 results

Setting and Tuning of JPA Queries

on which they were invoked). Flush Mode ( setFlushMode ) Changes made to a database using an EntityManager em can be visible ... time flush at the EntityManager level: em. setFlushMode ( FlushModeType . AUTO ); // Enable query time flush at the level of a specific query: query. setFlushMode ( FlushModeType . AUTO ); Flushing

Query.setFlushMode(flushMode) - JPA Method

JPA Method in jakarta.persistence.Query Query setFlushMode (    FlushModeType  flushMode ) Set the flush mode type to be used for the query execution. The flush mode type applies to the query regardless of the flush mode type in use for the entity manager. Parameters: flushMode

StoredProcedureQuery.setFlushMode(flushMode) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setFlushMode (    FlushModeType  flushMode ) Set the flush mode type to be used for the query execution. The flush mode type applies to the query regardless of the flush mode type in use for the entity

TypedQuery.setFlushMode(flushMode) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setFlushMode (    FlushModeType  flushMode ) Set the flush mode type to be used for the query execution. The flush mode type applies to the query regardless of the flush mode type in use for the entity manager. Parameters

EntityManager.setFlushMode(flushMode) - JPA Method

JPA Method in jakarta.persistence.EntityManager void setFlushMode (    FlushModeType  flushMode ) Set the plain that applies to all objects contained in the persistence context. Parameters: flushMode - flush mode Since: JPA 1.0

Duplicate Entity class names causes Exception in Query

.createNamedQuery("objdbTest.Singleton.count", Long.class); q. setFlushMode (FlushModeType.AUTO); try { return ... demands we flush transaction to db if we wish to see its results   q. setFlushMode (FlushModeType.AUTO ... . setFlushMode (FlushModeType.COMMIT); //q.setHint(QueryHints.CACHE_USAGE, CacheUsage

Update more than 10000 entities by an update query fails

.createEntityManager(); emOne.getTransaction().begin(); emOne. setFlushMode (FlushModeType.AUTO ... .createEntityManager(); emTwo.getTransaction().begin(); emTwo. setFlushMode (FlushModeType.AUTO); { String query ... emThree = emf.createEntityManager(); emThree.getTransaction().begin(); emThree. setFlushMode

InterfaceRef jakarta.persistence.EntityManager

, which may be set explicitly by calling setFlushMode . For FlushModeType.COMMIT , the persistence context ... setFlushMode ( FlushModeType  flushMode) Set the plain that applies to all objects contained in

EnumRef jakarta.persistence.FlushModeType

. setFlushMode Query. setFlushMode Since: JPA 1.0 Enum Constants AUTO (Default) Flushing to occur

Entity has be persistended,but query not fetched?

. setFlushMode (FlushModeType.AUTO); query.getResultList();   maozf maozf The following example ... ;   query. setFlushMode (FlushModeType.AUTO);        

Empty temporary dat files in the temp folder

.createEntityManagerFactory(db + ";drop");   EntityManager em = emf.createEntityManager();   em. setFlushMode ... .createEntityManager();   em. setFlushMode (FlushModeType.AUTO);   em.getTransaction().begin();  

InterfaceRef jakarta.persistence.Query

is negative Since: JPA 1.0 Query setFlushMode ( FlushModeType  flushMode) Set the flush mode type

InterfaceRef jakarta.persistence.TypedQuery

is negative Since: JPA 2.0 TypedQuery setFlushMode ( FlushModeType  flushMode) Set the flush mode type

InterfaceRef jakarta.persistence.StoredProcedureQuery

Inherited from: Query Since: JPA 1.0 StoredProcedureQuery setFlushMode ( FlushModeType  flushMode

Exception on creation when running multithreaded

also had: typedQuery. setFlushMode (FlushModeType.AUTO); for the specific query.   If I change the logic

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

_EntityManager = m_EntityMgrFactory.createEntityManager(); m_EntityManager. setFlushMode ( FlushModeType.COMMIT

Database(*.odb) file size on disk

. setFlushMode (FlushModeType.AUTO);   int objects = 1000;   int loops = 3;   for (int iteration = 0; iteration

Is it possible to remove parent/child entities without refresh?

();   entityManager. setFlushMode (FlushModeType.AUTO);   return entityManager; } private static

Merge with Parent/Child entities not possible

; EntityManager entityManager = emf.createEntityManager();   entityManager. setFlushMode (FlushModeType.AUTO

Query for objects persisted within the same transaction

/java/jpa/query/setting#Flush_Mode_ setFlushMode support Support Thanks, The part about performance in

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

= em .createNamedQuery("numberOfMapItems"); q. setFlushMode (FlushModeType.AUTO); try { long l = (Long

Remove a modified entity cause an optimistic lock exception

= emf.createEntityManager();         em. setFlushMode

Spring Transactions (@Transactional) within ObjectDB

the EntityManager :     em. setFlushMode (FlushModeType.AUTO); support Support I think I

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

(); em. setFlushMode (FlushModeType.AUTO); System.out.println("create and persist"); em.getTransaction

Upgrade to Java 8 won't run

.createEntityManagerFactory (dbName) em = emf.createEntityManager() em. setFlushMode (FlushModeType.AUTO) ObjectDB

Should derived fields of an EmbeddedId be manually maintained by app code?

"); q.setParameter("container", this); q. setFlushMode (FlushModeType.AUTO); try { long l = (Long) q

Tracking changes to new collections (in enhancement mode) after flush

.createEntityManager(); em. setFlushMode (FlushModeType.AUTO); em.getTransaction().begin(); ModelElementImpl ... .createEntityManager(); em. setFlushMode (FlushModeType.AUTO); em.getTransaction().begin ... (); em. setFlushMode (FlushModeType.AUTO); em.getTransaction().begin

Sometimes cascade persist does not work during commit

.createEntityManagerFactory("objectdb:./db.tmp"); EntityManager em = emf.createEntityManager(); em. setFlushMode