This content has been marked as final.
Show 1 reply
-
1. Re: How to avoid record updated automatically when records are retrieved
serkan Mar 8, 2012 7:51 AM (in response to simonc2009)Hmmm...a very nasty situation.
If the value you set is never gonna be saved into the db then try to solve it in your front-end with EL by doing something like this:
<span>#{hotel.id gt 0 ? hotel.id : -1}</span>
Otherwise use manual flushing on your method, which prevents auto-commits to the db. Note that your class must be in the conversation scope to use manual-flushing !
And check the Seam manual about this.
Good luck.