ObjectDB ObjectDB

NontransactionalWrite error using Collections.sort .

#1

Hi,

i started to use ObjectDB today and i'm having problem using command Collections.sort in persisted object. 

Attempt to modify an object with no active transaction when NontransactionalWrite is disabled: br.ufpa.linc.MetriX.api.model.Interface#105 (error 635)

 

I don't want to modifi de object in DB, just sort it to show at the moment.

someone can help me ?

 

thanks

David Bentolila

 

edit
delete
#2

Hi,

This exception is thrown when a managed entity object is modified and no transaction is active. Please follow the exception stack trace and check your code - you might find that your compareTo method changes a persistent field in some entity.

If you sure that your entity is not modified - please provide some test case that demonstrates this exception.

 

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.