|
|
Re: false but not true [message #522526 is a reply to message #522502] |
Mon, 22 March 2010 17:02 |
Tom Eugelink Messages: 825 Registered: July 2009 |
Senior Member |
|
|
> What was the delivered to begin with? If it was already true, then
> setting it to true will have no effect, so nothing will be written to
> the database.
It's being toggled. The resulting boolean also means another record is either inserted or deleted, and that record is correctly handled (so when false -> true the record is correctly inserted, when true -> false it is correctly removed).
But once the entity's property is set to false, it stays false. In memory it is set to true, the related record is inserted, but the entity itself is simply not persisted.
Same goes for a text property I update synchronous to the boolean (always append an "x"). When the entity goes from true -> false the text field also is updated, from false -> true it isn't. The EM seems to ignore it.
If I create a small test scenario, it works as expected. So it some circumstantial factor.
Tom
|
|
|
|
Re: false but not true [message #523216 is a reply to message #522438] |
Thu, 25 March 2010 14:54 |
|
Sounds like you may have two different copies of the object. When the error occurs, does it cause a rollback, this would clear the persistence context. Are you using flush() or anything else different?
Otherwise, you would probably need to get your simple example to reproduce the issue.
James : Wiki : Book : Blog : Twitter
|
|
|
|
Powered by
FUDForum. Page generated in 0.05062 seconds