Home » Search

About delete

121-130 of 200Refresh
Forum
2

Query fails with numerical values > 2^31

) delete from DataRecord p where p.TimeOfDeletion < 4147483648 This fails with "invalid numerical literal ... values of '1410521074995' are stored. So, it is possible to store this big numbers. But, why is my DELETE ... stacktrace: Exception in thread "Thread-2" [ObjectDB 2.5.6_05] DELETE FROM DataRecord c WHERE c
Forum
2

removed objects stay with null field values in the reference

is when we  delete with a query use entityManager.remove  You have to remove the object from the set 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 the set
Forum
1

500Mb ObjectDb database opening issue

500Mb ObjectDb database opening issue
Issue
1

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 http
Forum
1

Drop the entire database, Change the schema

to do this with ObjectDb, or is the only way to delete the database file everytime? Thanks You can delete the database file (and associated files if any) using your code, e.g.     new File(path).delete ... ,tmp" /> This is a defensive restriction to avoid deleting databases by mistake, but the conventional
Forum
1

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

,modify,create,delete" />                                                                                
Forum
1

How force always recreate database on redeployment.

Is there some easy way to force recreation/deletion of the current database on deployment of a web ... the server, delete the database file, re-start the objectdb server, re-run the web app, which is tedious ... to force ObjectDB to always delete or empty the database file on startup ? You should be able to drop
Forum
1

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

EntityManager createEntityManager(String dbFileName, boolean delete) {   EntityManagerFactory emf = null;   if (delete) {    new File(dbFileName).delete();    new File(dbFileName + "$").delete
Forum
1

Merge with Parent/Child entities not possible

, boolean delete) {   EntityManagerFactory emf = null;   if (delete) {    new File(dbFileName).delete();    new File(dbFileName + "$").delete();   }   emf = Persistence.createEntityManagerFactory
Issue
1

Negative snapshot user count

The NullPointerException in issue 559 (#15) reveals that this problem can happen when using DELETE or UPDATE queries ... String DELETE_QUERY =         "DELETE FROM MyEntity WHERE id = :id";     public static void main ... .getTransaction().begin();                     em2.createQuery(DELETE_QUERY