On Wed, Nov 28, 2012 at 8:28 AM, Marios Skounakis <[email protected]> wrote: > Hi Colin, > > I find I am in agreement with your points about lazy loaded parts of the > data model and how this can be simplified if you use LDMs. > > However, if you use LDMs for edit pages, you need to deal with concurrency > issues yourself. You cannot rely on Hibernate's optimistic concurrency > mechanism (version). Because every time your LDM fetches a fresh instance > of the entity, you can never have a StaleObjectException. Dealing with > concurrency yourself may be as easy as keeping the version property in > addition > to the Id property in the LDM, and checking against it when re-attaching > the model, but this does add some complexity to the application code. > > Any thoughts on this?
>From the good old days: http://martijndashorst.com/blog/2006/02/13/wicket-goodie-hibernate-versioned-form/ Martijn --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
