ObjectDB Database Search

51-100 of 200 results

Attempt to open a non existing file '/tmp/objectdb_xxxx/SortQueryItr_6.mrg'

deleted the tmp file of another application. I hope this description is sufficient. EKK EKK Emmanuel Keskes ObjectDB deletes its temporary files in 2 ways: Every process deletes its own temporary files that become unreachable (tracked by using weak references). When a process starts it tries to delete

Method Invocation On All Entities

Deleting or changing a field of all the entities of some type is fairly easy, using the DELETE ... should do some operations before it gets deleted , and at some point we want to delete all those entities. It could be usefull if we could invoke some "doBeforeDie" method before the deletion

Date field Index is corrupted due to time change

Hi, can you shed some light on why we cannot delete data from the attached DB file. A delete ... on an attempt to delete objects could happen with other operations as well. The common reason for database ... ; The delete query we run is: DELETE FROM RecordingMetaData The exception is the same: [ObjectDB 2.6.5

Server closes if large query runs out of memory

occurred during JDO deletion query, and the temp threshold was set and was low (64mb).  There is an easy work-around, which is to divide up the deletion into smaller number of objects.  I understand that JPA bulk delete doesn't involve any object retrieval, whereas perhaps JDO deletion does

How to Remove records from many to many relationship tables in JPA

Hello All, I am getting the constraint violation exception whil deleting the entries I ... need to delete   records in both tables (TransportationEvent and Conclusion) here i am trying to delete conclusion table records like bellow: removeConclusions(conclusion.getId()); public void

Foreign key constraint issue

to Parent, so that when the parent is deleted all children are removed as well. Unfortunately, in ... the following case not all children are deleted : ... Parent parent = new Parent(); parentRepository ... is persisted parentRepository. delete (parent); // Here trying to delete the parent

com.objectdb.o.TEX: Type ... is not found, for a class that's already been enhanced successfully.

; common.model.UserSession$_ delete _closure1     mr.model.MRAuction$_ delete _closure2     mr.model.MRAuction$_ delete _closure3     mr.model.MRAuction$_ delete _closure4     mr.model.MRAuction$_ delete _closure5     mr.model.MRAuction

Enhancement of type is old and cannot be used

. They were present before and also saved in the DB, but are deleted for some time now. When I open the DB ...  ? jakab Gergely Jakab You can delete old classes using the Explorer of version 2.8.3_05 (right click - Delete , or from the Edit menu). Please check if this solves the issue. support Support I

Remove not working

that there are no already deleted objects in the graph to delete but it still didn't work. As you can see my testcase does ... because, in the same transaction, I gather an Extent, delete an object, then try to gather the same ... that was deleted . The fix was to do a PersistenceManager.flush() before trying to gather the Extent

Optimization Question

. - If it's an update to an existing track, delete the entire previous entry and then add in the new ... more embedded objects whenever possible. Delaying the delete operations to time with less or no activity (and if you can use one transaction for deletion of many updates it can also improve performance

persistence.xml classes not respected by ObjectDB

erase the DB and start all over. But that's a problem. I have discovered it when I had to delete and set the new database in production. It just didn't want to respect the restrictions. I had to delete ... . Otherwise I can't do it. What is it to be done? zmirc Mircea Chirac will not delete classes

removed objects stay with null field values in the reference

to null except the primary key. The same behavior is when we  delete with a query use entityManager ... ;explicitly, in addition to deleting it. However, if the set is defined as mapped by , it will be updated automatically after committing the delete operation and then reloading of the object that contains

Database corrupted after schema change

;     private boolean deleted ;     private Date modificationTS ... ------------------- [1] Page #19753 entry 0 has unexpected field count (7 instead of 5) 0. oid = '567651' 1. deleted ... #33279 entry 1 has unexpected field count (7 instead of 5) 0. oid = '559770' 1. deleted = false 2

Unexpected NoSuchFieldError exception

.AbstractCallSite.callGetProperty(AbstractCallSite.java:296) at app.database.ObjectDbDatabase. delete _all_entities(ObjectDbDatabase.groovy:69) at app.framework.Database$ delete _all_entities$0 ... (AbstractCallSite.java:296) at app.database.ObjectDbDatabase. delete _all_entities(ObjectDbDatabase.groovy:69) at app

CriteriaDelete.where(restrictions) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaDelete CriteriaDelete where (   Predicate... restrictions ) Modify the DELETE query to restrict the target of the deletion according ... removed. Parameters: restrictions - zero or more restriction predicates Return: the modified delete query Since: JPA 2.1

CriteriaDelete.where(restriction) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaDelete CriteriaDelete where (    Expression  restriction ) Modify the DELETE query to restrict the target of the deletion according ... . Parameters: restriction - a simple or compound boolean expression Return: the modified delete query Since: JPA 2.1

EntityManager.createQuery(deleteQuery) - JPA Method

 deleteQuery ) Create an instance of Query for executing a criteria delete query. Parameters: deleteQuery - a criteria delete query object Return: the new query instance Throws: IllegalArgumentException - if the delete query is found to be invalid Since: JPA 2.1

AnnotationRef jakarta.persistence.ForeignKey

[ ( {, } ... ) ] [ ON UPDATE ] [ ON DELETE ] When the ConstraintMode value is CONSTRAINT ... and delete actions it determines most appropriate for the join column(s) to which the foreign key ... . If the foreignKeyDefinition element is not specified, the provider will generate a constraint whose update and delete

EntityManager.createQuery(deleteQuery) - JPA Method

 deleteQuery ) Create an instance of Query for executing a criteria delete query. Parameters: deleteQuery - a criteria delete query object Return: the new query instance Throws: IllegalArgumentException - if the delete query is found to be invalid Since: JPA 2.1

CriteriaDelete.from(entity) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaDelete Root from (    EntityType  entity ) Create and add a query root corresponding to the entity that is the target of the DELETE . A CriteriaDelete object has a single root, the entity that is being deleted . Parameters: entity

CriteriaDelete.from(entityClass) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaDelete Root from (   Class  entityClass ) Create and add a query root corresponding to the entity that is the target of the DELETE . A CriteriaDelete object has a single root, the entity that is being deleted . Parameters: entityClass

EnumRef jakarta.persistence.LockModeType

(Non-repeatable read): Transaction T1 reads a row. Another transaction T2 then modifies or deletes ... . Another transaction T2 then modifies or deletes that row, before T1 has committed or rolled back. A lock

ArrayIndexOutOfBoundException

.deleteInOpenTransaction(ObjectCacheDB.java:361) at com.ysoft.cache.objectdb.ObjectCacheDB. delete (ObjectCacheDB.java:356) at com.ysoft.cache.objectdb.ObjectCacheDB. delete (ObjectCacheDB.java:347) at eu.ysoft.safeq.ors.CacheDBWrapper. delete (CacheDBWrapper.java:73) at ysoft.sqcore.job.CacheJobManager

Query.executeUpdate() - JPA Method

JPA Method in jakarta.persistence.Query int executeUpdate () Execute an update or delete statement. Return: the number of entities updated or deleted Throws: IllegalStateException - if called for a Jakarta Persistence query language SELECT statement or for a criteria query

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

a CriteriaDelete query object to perform a bulk delete operation. Parameters: targetEntity - target type for delete operation Return: the query object Since: JPA 2.1 CriteriaUpdate

CriteriaBuilder.createCriteriaDelete(targetEntity) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaDelete createCriteriaDelete (   Class  targetEntity ) Create a CriteriaDelete query object to perform a bulk delete operation. Parameters: targetEntity - target type for delete operation Return: the query object Since: JPA 2.1

EntityManager.createNativeQuery(sqlString) - JPA Method

JPA Method in jakarta.persistence.EntityManager Query createNativeQuery (   String sqlString ) Create an instance of Query for executing a native SQL statement, e.g., for update or delete . If the query is not an update or delete query, query execution will result in each row

Query.getResultStream() - JPA Method

Throws: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or DELETE

Query.getSingleResult() - JPA Method

Persistence query language UPDATE or DELETE statement QueryTimeoutException - if the query execution

Query.getResultList() - JPA Method

DELETE statement QueryTimeoutException - if the query execution exceeds the query timeout value set

TypedQuery.getSingleResult() - JPA Method

for a Jakarta Persistence query language UPDATE or DELETE statement QueryTimeoutException - if the query

TypedQuery.getResultList() - JPA Method

Persistence query language UPDATE or DELETE statement QueryTimeoutException - if the query execution exceeds

TypedQuery.getResultStream() - JPA Method

: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or DELETE statement

EntityManager.remove(entity) - JPA Method

JPA Method in jakarta.persistence.EntityManager void remove (   Object entity ) Mark a managed entity instance as removed, resulting in its deletion from the database when the persistence context is synchronized with the database. This operation cascades to every entity related by

AnnotationRef jakarta.persistence.OrderColumn

is responsible for updating the ordering upon flushing to the database to reflect any insertion, deletion , or

AnnotationAttrRef jakarta.persistence.ForeignKey.value

will generate a constraint whose update and delete actions it determines most appropriate for the join column

AnnotationRef jakarta.persistence.Version

instance and attempting to update or delete the state of the instance. The version attribute

EntityManager.detach(entity) - JPA Method

JPA Method in jakarta.persistence.EntityManager void detach (   Object entity ) Evict the given managed or removed entity from the persistence context, causing the entity to become immediately detached. Unflushed changes made to the entity, if any, including deletion of the entity

InterfaceRef jakarta.persistence.StoredProcedureQuery

: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or DELETE statement

Query.getSingleResultOrNull() - JPA Method

Persistence query language UPDATE or DELETE statement QueryTimeoutException - if the query execution exceeds

TypedQuery.getSingleResultOrNull() - JPA Method

for a Jakarta Persistence query language UPDATE or DELETE statement QueryTimeoutException

Removing of an entity removes also another entity type

. All ResolverMapping entities are removed by a query ( DELETE FROM ...), afterwards ResolverMapping entities ... . If the ToleranceDefinition entity is removed from database by a query ( DELETE FROM ...) then it performs. The data ... .7.1_03. btc_es BTC EmbeddedSystems OK. Thanks for the update. Please note that mixing direct DELETE

Removed entities can be found by query in the same transaction

__odbtracker/m (type STA, value=Persistent- Deleted -Flushed) which shows that the entity is deleted ... what is the problem? best regards BTC btc_es BTC EmbeddedSystems If an entity was deleted from ... at least two different snapshots of objects - one with the deleted object and the other without the deleted object

ClassCastException thrown when running count query

have inserted. I'm currently evaluating your product. So i insert and delete a lot of data. I also tried ... reference integrity and it is the application responsibility to avoid deletion from the database ... will be produced. support Support The orphan Position records are there because i deleted some Units with a DELETE

Blocked by find

. The code looks like:    Query query = em.createQuery(" DELETE FROM DataHolder d WHERE d ... is persisting more data, the other group is deleting the first set of data via delete statements. Eventually ... the application the data sizes are larger so I guess the delete is slower and gives the appearance

References to objects of missing obsolete entity classes

the database but their classes have been deleted or missing? This is abnormal state for a database ... itself, is it correct that the objects are in the database but their classes have been deleted or missing ... of deleting classes using the Explorer, so it may be related. We cannot reproduce the exceptions

'DROP TABLE' in ODB?

Let's say I no longer need some entity in my project and after deleting all the objects ... I found a description that the DB Explorer should be capable to delete classes? But it seems not ... of deleting classes in the Explorer. An obsolete class can be selected in the Schema / Managed

ArrayIndexOutOfBoundsException on flush

at this point is performing a delete query for all entity objects that the database contains: EntityManager em = _emf.createEntityManager(); em.getTransaction().begin(); try { Query query = em.createQuery(" DELETE FROM ExecutionGraph g"); query.executeUpdate(); query = em.createQuery(" DELETE FROM

Allow removal of entity class from ObjectDB & Explorer

Hi. It would be very useful to be able to delete an entire entity class from ObjectDB ... .8.2 adds support of deleting classes in the Explorer. An obsolete class can be selected in the Schema / Managed Types list and then deleted  by using [Edit Delete ] from the menu bar or right click (context menu) and Delete . support Support

Cascade.ALL with LAZY fetchtype does not clean up all references on remove

with FetchType.LAZY. If I now delete a root entity using EntityManager.remove all leaf nodes will not be deleted . This only applies to the leaf nodes. If I add an additional the behaviour changes so that these new leafes will not be deleted . I created a small test case which can be downloaded at