About bulk delete

21-30 of 200Refresh
Forum
7

Handling deleted references

Hi support team, I have a problem when using DELETE query to delete Entity instances. We use ... has a profile. To reset a profile I run a DELETE query on the old profile , hoping that this would lead ... , which simply checks if the profile instance is such a "intermediate/deleted" instance. Is there a way
Forum
6

Unable to delete the .odb file programatically

Hi, I created the test.odb file, read the contents and now trying the delete the odb file using ... , when i am trying to delete the file using the followng code     File[] files = parentDir.listFiles();     for (File temp : files ) {         boolean deleted = file.delete(); // getting false
Issue
6

I can't get cascading delete to work in JDO

, but cascading delete does not, leaving orphan objects. Thank you for this report. Apparently cascading delete has never been implemented in ObjectDB (see also "Deleting Dependent Objects" on this old documentation page). Build 2.7.5_04 implements cascading delete in JDO. Your NetBeans project was converted
Issue
6

JPQL Update & Delete (JPA 1.0)

JPQL (Java Persistence Query Language) supports updating and deleting database objects by queries. Currently ObjectDB supports only JPQL SELECT (retrieval) queries. Delete queries are supported for JDOQL (JDO Query Language). spring-data-jpa uses delete queries to implement repository.deleteAll
Issue
6

Deleting archive log folder causes exception

Hello, we have observed strange behaviour when we delete odb archive log directory. We are running long term tests and during it we are deleting all logs that are not needed keeping the system running. When the "archive/" folder, where odb logs are archived, is deleted, the exceptions occur
Forum
6

Is there a function of "drop table" or "delete from table"?

Besides the em.remove() one by one, is there a function of "drop table" or "delete from table"? TIA You can execute a DELETE query:     em.createQuery("DELETE FROM MyEntity e").executeUpdate ... . The code “createQuery("DELETE FROM MyEntity e").executeUpdate();” works, but it can not reset id to zero
Forum
6

OneToMany and cascade delete problem

(which is deleted together with product). You can see this in attached example. The question is - is it a bug ... .java:73) I think that the Offer class and cascading delete from Product to Offer are irrelevant ... when the Product is deleted. Otherwise a broken reference from Store to the deleted Product
Forum
6

Cascading delete

Is there a configuration parameter to set this? You can set cascade delete using annotations (see also the Orphan Removal section). JDO defines similar annotations, and both JPA and JDO support ... . You cannot set global cascade delete since that will be too risky - you may delete the entire database. dmoshal
Forum
6

Delete class from DB - through Explorer

Hi! I was looking for ways to delete a class (entity/embedded) from a database through Explorer ... is to delete the whole db and make a new one, but that's not a good scenario ... . However, it only affects the list of classes in the Explorer, so you may just ignore the deleted class
Issue
6

Issue with cascade delete & add/remove

of Address which cascades deletes (orphanRemoval=true) to its children which is what we want ... it has never been deleted from the collection (at least, until the transaction is comitted ... Entities within the collection of a Contact when we delete the Contact? Is that cascaded or do we need