Home » Support » Forum » Need to close+open database for a commit to be taken into account

Need to close+open database for a commit to be taken into account

#1

Hi,

I have one case where commit (update of entity in this case) is not taken in account unless database is actually closed and re-open, no error.

I tried to use flush instead of close+re-open but it does not work. So currently there is a dirty close + open + reload on each update of one of these entities, which is far from ideal. The entity involved contains (between other fields) another entity, that's the only particularity i can see. I tried with and without entity relationship defined, no difference.

As making a test case snippet will involve quite a large amount of work (using actual entities) I would like to know if i could try anything else that flush to replace the close+open+reload.

Thanks.

#2

Maybe you should try disabling all sorts of cache in the configuration file, but the information provided is insufficient for suggesting anything further.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login