Do you use session.save(object) ?
Should be session.saveOrUpdate(object) or session.update(object)
François
Le 11 avr. 2016 à 23:34, ChambreNoire <a...@tentelemed.com> a écrit :
> Hi,
>
> I'm trying to use the ListEditor component from the Wicket in Action blog
> (). I'm giving it a PropertyModel that points to "parent.children" where
> parent is a LDM that loads a 'parent' from the database. It displays
> properly however when I update the TextFields added to the ListItems and try
> to save the parent, I get the following persistence exception
> "org.hibernate.NonUniqueObjectException: a different object with the same
> identifier value was already associated with the session".
>
> I get the feeling that this is due to the way the ListEditor handles the
> model update. What would be required to adapt it to my usage?
>
> Many Thanks,
>
> CN
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Trouble-updating-ListEditor-with-a-detachable-model-tp4674272.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>