Thank you, Igor. This looks useful to me. The interesting part seems to be:

public void detach()
{
    if (entity != null)
    {
        if (entity.getId() != null)
        {
            id = entity.getId();
            entity = null;
        }
    }
}

The id is set while detaching and at then the ID must be set by Hibernate 
(otherwise the object wouldn't be saved and couldn't be retrieved).


Maybe it would be a good Idea to replace the Identifiable interface by JPA 
Annotations and Reflection and then make this model a standard model for Wicket.





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

Reply via email to