About clear

forum_thread

in-memory and on-disk support?

I've had a quick read through the features/FAQ and haven't been able to find a clear answer. I'm looking at replacing a setup of H2 where I have 40GB in-memory backed by 800GB on-disk, the 40GB in memory represents the first 40GB of the 800GB on-disk for super-fast recent entry searching, the records at the end continuously purge as the new ones come in(duplicate write, one to in-memory and one to on-disk). ... through the features/FAQ and haven't been able to find a clear answer. I'm looking at replacing a setup of H2 where I have 40GB ...

 
issue

Persist & remove in same transaction

I have a test case (attached) which performs the following actions: Bug Version: Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...

 
forum_thread

Bug: ClassCastException by retrieval

Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: ... toString ( la ) ) ;   em. clear ( ) ;   tNode tn3 = em. find ( ...

 
forum_thread

enumeration table? how to on pure jpa?

Hello , I've relational db , and there is some table named enumerations with , some key and values.We will migrate to objectdb. Our problem is , we want to store some keys and values for global application configs. Like; tablename : enumeration table rows: key                value ... like that on pure JPA if possible. Fastest clear way... I've looked some other annotations but i could not ...

 
forum_thread

Merge failure with composite primary key

It was working well with previous releases and now is failing: Exception in thread "main" [ObjectDB 2.3.7_20] javax.persistence.EntityNotFoundException Entity is not found: MergeTest#('Hello',0) (error 631) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:451) at MergeTest.main(MergeTest.java:19)   Thanks. #1 2012-04-27 16:55 It was working well with previous releases and now is failling: Exception in thread "main" [ObjectDB 2.3. ...

 
issue

Resource leaking via a rogue Shutdown Hook

A shutdown hook is registered upon ObjectDB initialisation. The hook is loaded from the web application's class loader. When the application is stopped (not the server, just the application) the hook is not cleared. This leads to web-application class-loader leak, that results in huge resource loss, and eventually in an OOME. Offending class: com.objectdb.o.MSF$1 (anonymous subclass of java.lang.Thread) Name of the Thread/Hook: ODB-FileCloser Thread is registered from the com.objectdb.o.MSF static initialiser (<clinit>). Bug Version: Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...

 
forum_thread

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects from the database outside a transaction (inside doesn't seem to matter). First cycle of doEdit and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity object" session.rollback() is somehow causing the problem (found through debugging) Is this enough information for someone to suggest what might be happening and how to fix it? ... ObjectDB manual - by: "The following operations clear the entire persistence context and detach all managed entity objects: ...

 
api-jdo

setExtensions(extensions)

Set multiple extensions, or use null to clear all extensions.(Method of javax.jdo.Query)

 
forum_thread

ObjectDB's Database Doctor Incorrect Error Report

Am I reading this correctly?  It seems that Doctor is telling me that one of my objects is missing.  Looking at the database with ObjectDB's Database Explorer though seems to show that the reference to the object is good and that the object does indeed exist.   Output from Doctor Diagnose and Doctor Repair is attached.  So are the two databases and screenshots of Explorer showing the reference to the object and the existence of the object. ... was fixed now so starting the next build there will be a clear limit of 64KB. Thank you for this report. To avoid this ...

 
issue

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

Older objectdb-2.4.0_06, Java6. For the following (note the use of "is" form) in a class Element I encounter ObjectDB enhancement errors: ... build in NetBeans, and also after complete NetBeans cache clear (an no matter whether using compile-on-save or not) I get at run-time ...