http://wicketinaction.com/2008/09/building-a-smart-entitymodel/

-igor

On Fri, May 8, 2009 at 8:21 AM, Christian Helmbold
<christian.helmb...@yahoo.de> wrote:
>
> Domain (or model) objects get their IDs from Hibernate on saving in my 
> application. When I create a new LoadableDetachableModel with a fresh model 
> object without an ID, the LoadableDetachableModel object contains no ID to 
> load the model object from the DB on the next request.
>
> Because LoadableDetachableModel is read-only, I can not set an ID like in the 
> "hand made" detachable model in "Wicket in Action" on Page 99, where the ID 
> is set in setObject(Object o). Do I have to create a new 
> LoadableDetachableModel after the initial saving of the domain object and 
> then replace the old LoadableDetachableModel object with it?
>
> Tanks,
> Christian
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to