ObjectDB Database Search

101-150 of 200 results

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

; } } private static EntityManager createEntityManager(String dbFileName, boolean delete ) {   EntityManagerFactory emf = null;   if ( delete ) {    new File(dbFileName). delete ();    new File(dbFileName + "$"). delete ();   }   emf = Persistence

Merge with Parent/Child entities not possible

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

Softdelete api like hibernate

. so we can control deleted items. We can store deleted items on seperate disk or server so , deleted items wont effect performance. We can also annotate them to delete with some time , some timeout. Or

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 ? webel Dr Darren Kelly

Query results are not up to date for entities, not primitives

You could delete this post? I'll create a new one with this issue properly. Not close. Delete . flavioreboucassantos Flávio Rebouças Santos We usually do not delete forum threads. But you may abandon this thread ... another post. This post may be closed or deleted . Very thanks! flavioreboucassantos Flávio Rebouças

Drop the entire database, Change the schema

to do this with ObjectDb, or is the only way to delete the database file everytime? Thanks JFK John Francis You can delete  the database file (and associated files if any) using your code, e.g.     new File(path). delete (); However, this could be a useful ObjectDB feature. Maybe adding

EM close causes an exception

during query execution, where it seems that the temporary file is deleted while the query is executed. The temporary file is deleted only when the database is closed. Is it possible that in your test ... ? Another system property to check (in case the directory was created and deleted

Soft Reference Object Cache Recommendation

when the JdoBlob2 gets deleted . I use JavaVirtualVm to look at my application heap to see the references to the byte ... to rid the cache of older JdoBlob2s, leaving the newer ones in the cache, such as delete 1/2 ... that legitimately implicitly is telling ObjectDB to keep strong references?)  Recall that if I delete

impossible to drop a table with 50 million objects

when trying to execute in explorer (max heap size 1GByte) delete from LogEntry l it comes up with a Java heap error after 20 minutes of executing. How to empty such a table ?     hgzwicker ... . You can try deleting these objects in batches, using several transactions, each transaction will delete

Size of recording directory keeps growing

. ObjectDB does not purge old recording files. However, you can delete old odr files manually or from ... #3500781. If you want to delete all the odr files except the last one, 9123744.odr, you should first ... ,and which can be deletes . When you run the replayer it takes one parameter, the database file.  

Embedded in JDO metadata not working in objectDB 2.x ?

them. Check that new embedded objects are created and then delete all the unwanted entity objects ... delete now the unwanted entity objects? Since I upgraded the schema where these objects are declared as ... running the delete query from a small console application. If it doesn't work you may have to set

Failed to synchronize replicated database

recording? I suppose that we can harmlessly delete all recordings when ODB Server is offline ... transactions are written to the basepoint and deleted later to save disk space?   thamal Tomas Hamal ... , so I would rather delete all transactions and create new base file. But I would like to know if I

ObjectDB JDO - foreign key constraints

and one entry for the Person in the db - as expected. When I try to delete my Person object (pm ... cascading updates and deletes in JDO? There seems to exist a @ForeignKey annotation in JDO ... deleting an object but keeping a reference to it). Regarding cascading operations, even if you use JDO

java.lang.UnsupportedOperationException

- Update queries are not supported yet. Used with this code: " DELETE l FROM License l WHERE l.id = ?1 ... ); em.getTransaction().commit(); Another option is to run a JDO DELETE query, e.g. em.getTransaction ... .getTransaction().commit(); JPA DELETE queries are expected to be supported soon. You may subscribe to this issue . support Support

Record is not clearing properly on remove

;but when i delete Agent ,it is removed from db but in AgentGroup it is not removed properly. Agent ... ; Thanks Manoj Manoj Kumar Maharana You have to remove it from the collection and then delete ... ;with the agent as the owner side and the agent group as the mapped by side, you just have to delete the owner

ArrayIndexOutOfBoundsException

it. If it doesn't help - you may have to delete that specific entity object to make the database ... and immediately after a create, update or delete operation the DB throws these errors again. I tried to run ... the same behavior was experienced.   I then tried to delete the DB and create it from scratch

Show Sql/Jpql

and delete wua Andreas Wurm It may be a good idea to log queries as strings in TRACE logging level. ObjectDB (unlike ORM JPA implementation) does not use queries to implement Insert, Update and Delete operations (except delete / update queries). You may log these operations by setting a JPA lifecycle

Empty temporary dat files in the temp folder

-file is enabled. In the new build (2.6.8_08) the temporary file is deleted when the database file ... today. Still, ObjectDB deletes all unused temporary files periodically (also in 2.6.8_06). This happens when a new temporary file is created if the last "all unused temporary files deletion

removing members in existing databases

to objects for deletion to a special "queue" list and delete objects in the background in a low ... / inverse and in that case in practice you can only delete objects and the lists will be updated

Can't post on your forum

Something to check that maybe could help. Log out from the website. Delete all the browser cookies. Log in again. support Support I deleted the cookies and tried to log in again many times. I've also tried in ... delete all cookies / open incognito I go to log in I log in, which redirects me to the home page

Activation license not picked up in Jenkins

.MetaClass [2020-09-03 22:03:33 #10 query.compiler] [2020-09-03 22:03:33 #11 query.manager] Query " DELETE ... :34 #17 query.manager] Query "SELECT a FROM common.model.Site a WHERE a. deleted =false" = 0 results in ... .manager] Query "SELECT a FROM common.model.Person a WHERE a. deleted =false AND a.username='dummy_3'" = 0

Schema-Update: Rename superclass and remove one subclass

.getResultList(JpaQuery.java:719) at schemaupdate. delete .UpdateDB.main(UpdateDB.java:32) Exception in thread ... ) at schemaupdate. delete .UpdateDB.main(UpdateDB.java:32) btc_es BTC EmbeddedSystems Thank

Performance and memory usage of queries

Hello, we can't understand why the performance of queries is not the best and the execution requires so much memory. In the implementation of our UnitTests we have used " DELETE FROM Object" to delete the database. That did not work because we often get an "out of memory" exception

Objectdb Doctor

Hi, I have deleted an instance of ClassA . However, if I try to access ClassB , which has a field of type ClassA , ClassB.classA , then, rather than getting a null pointer for classB.classA , I ... are removed/ deleted from the databases - it is the application responsibility to clear any references

Problem with distinct select, order by and equivalent alias/attribute path

; em.createQuery(" delete from Street s").executeUpdate();         em.createQuery(" delete from Location l").executeUpdate();        

Database(*.odb) file size on disk

Hello, we have questions about the file size of ObjectDB database on disk. Can you tell us something about how the deleting of entities affects the size of *.odb files on disk? -Will the released ... ; We have created a small test, in which we create and delete entities. It looks like that the released memory

Maintaining referential integrity

, it is deleted from the database, no matter if it's referenced by an instance of Employee. I tried to use ... integrity and it is the application responsibility to avoid such deletion . The ObjectDB Doctor

Undeployment of an remote Glassfish application locks objectdb log file

is still there. If you try to manually delete the folder, you will get an "Folder in use" error message. Because the "odbxxxxxx.log" file is in use by an java process. If I restart Glassfish, I can delete the folder

Shrinking Database Files

file never shrinks when large number of objects are deleted and the only way to reclaim that space ... some minor helpful context to propose an answer.) CBE CBE ObjectDB reuses space of deleted objects

Dirty checking

, Deleted , and Changed. That is a simple example, more complex views are composed of data from ... of the Company and User entity classes. Next a request comes in which deletes a company. So we need

InternalException when reading a HashMap

in repair mode. It does not helped unfortunatelly. What helped was deleting the entity completely in explorer including all it's instances ( deleting only instances did not helped) But that way

odb file size doesn't shrink

Hello, why delete from ... doesnt modify size of odb? Even in in embedded mode, and in server mode i use recovery, not recording mode. mastervoland Vladimir Sadovnikov When objects are deleted from the database their space is marked as unused and becomes available for future objects. The size

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

= OdbError631.class.getSimpleName() + ".odb";         new File(dbName). delete ();         new File(dbName + "$"). delete ();      

Replication error on slave restart

. You should be able to delete old recording files unless they are needed for slave servers ... . And sometimes I use " DELETE lvl FROM level lvl" to reassemble level data (it sometimes has some

Recovery file does not match db file

delete it and restart the database server. Version 2.3.1 is nearly one year old - you should upgrade ... bytes). confirmed that problem is resolved when the recovery files are deleted , does'nt seem to be any

Database Inconsistency or corruption

ObjectValue are just deleted from the database. If I had detailled traces of the EntityManager or of ObjectDB, I could identified when the delete operation is executed! There is still something I don't

orphanRemoval = true not working when CascadeType.REMOVE is disabled

= CascadeType.REMOVE) Address entities used Employee (id=1) deleted , but Address (name_2) using other Employee (id=2) deleted too: [Address{name='name_1'}, Address{name='name_2'}, Address{name='name_3

com.objectdb.o.UserException: Ambiguous entity name

. How can I remove this embeddable class without deleting my database or deleting the entity

ClassCastException: com.objectdb.o.SLV cannot be cast to com.objectdb.o.RSV

.ObjectCacheDB.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

Exception Failed to read from file

.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

Negative snapshot user count

can happen when using DELETE or UPDATE queries in a multithreaded application. A transaction ... String DELETE _QUERY =         " DELETE FROM MyEntity WHERE id = :id

[ObjectDB 2.4.1] Unexpected exception (Error 990)

indicates a missing (or empty) FROM clause in a DELETE query. Could you please post the query ... with invalid DELETE query: import javax.persistence.*; public class T825 {     public static ... ();         em.createQuery(" DELETE o").executeUpdate();   

NullPointerException in __odbGetNumMember

Hi, When deleting an entity "Mitglied" - everything works fine. Trying to delete another one (in a separate transaction) always causes a NullPointer Exception in __odbGetNumMember line 1 of the enhanced Mitglied class. I am unable to replicate it in a simple testcase but it always happens in

File lock exception on odb$

and the os allowed us to delete the files in question without any problem. In this case we weren't ... ? support Support It was repeatable at the time but we ended up deleting the odb$ to get the app started

Use temporary files to enable very large transactions

? What combination of DELETE / INSERT / UPDATE operations are in that huge transaction? Can we assume ... ; What combination of DELETE / INSERT / UPDATE operations are in that huge transaction? Possible

Referential Integrity

Currently ObjectDB doesn't prevent deletion of entity objects that are in use and referenced by other entity objects, and it is the application responsibility to avoid such deletion . During development and testing it is recommended to use the ObjectDB Doctor to verify

Inverse OneToMany Mapping and EmbeddedId

) . delete ( ) ;          new File ( dbName + "$" ) . delete ( ) ;  

again merger missing logs + objectdb exception

) - some of these references are broken when we delete objects - there is a mechanism in our application ... on deleting are very high. is there a problem to have this kind of broken references ? hgzwicker Hans-Georg

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

to explicitly define the classes, in the schema config (objectdb.config), that should be deleted .   In ... . 1) How can we delete a whole class? 2) What happens when we open the DB but not all entity classes

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

. It may be possible to improve the Doctor in a way that these two objects will be deleted (not fixed ... . Sometimes everything is just fine. And just now I got (after deleting the database file and re-running the application