Thanks for the immediate replies. Seems that, when using that pattern, one really always has to be aware of the fact that changes are made directly to persistent instances. Otherwise it could easily happen to get inconsistent data into the DB.
Michael Sparer wrote: > > I'd say either enable transactions only for write operations or put all > together in one transaction (i.e. don't let hibernate flush the session > before you did your backend checks) ... > This works if each request is a single transaction. If multiple transactions are run in one request, this wouldn't help, I think. igor.vaynberg wrote: > > map a form to a bean and apply the changes to the entity yourself or do > all validation via I(Form)Validators > The first solution sounds like using DTOs and one reason of using OSIV is to not to have to use DTOs. But I like the FormValidator solution. That should work in most cases. Regards -- View this message in context: http://www.nabble.com/OpenSessionInView-%28OSIV%29%2C-LoadableDetachableModel-and-Transactions-tp18115802p18129013.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
