loadable detached models and versioning

2010-05-12 Thread David Sheth
Hi all. I'm new to wicket. I was reading in the Wicket In Action book on LoadableDetachedModels...particularly how when the model is detached, just the id of the actual database persistent object is stored. Then, in the load method, you retrieve the persistent object from the database. That

Re: loadable detached models and versioning

2010-05-12 Thread James Carman
On Wed, May 12, 2010 at 10:52 AM, David Sheth da...@dsheth.com wrote: Hi all.  I'm new to wicket.  I was reading in the Wicket In Action book on LoadableDetachedModels...particularly how when the model is detached, just the id of the actual database persistent object is stored.  Then, in the

Re: loadable detached models and versioning

2010-05-12 Thread Michael O'Cleirigh
Hello, Another option would be to make your detachable model aware of the version aswell as the id which will allow you to catch this case. Process: Cache the version aswell as the object id. Then either do a query to make sure the cached version is still valid or wait until after the