Hi Thiago, I'm aware the hibernate piece is unrelated, however what I'm
asking is storing my object in the user session the correct approach? I'm
really wondering if I'm using Tapestry properly to produce warnings. I
don't want to just patch the issue with hibernate .merge if I'm not doing
something correctly with Tapestry first.


On Mon, Mar 17, 2014 at 11:10 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Mon, 17 Mar 2014 11:18:50 -0300, George Christman <
> gchrist...@cardaddy.com> wrote:
>
>  Hi Guys,
>>
>
> Hi!
>
>
>  Although in theory his should work, I continue to get the following
>> hibernate exception.
>>
>> "a different object with the same identifier value was already associated
>> with the session"
>>
>
> This is unrelated to Tapestry.
>
>          session.saveOrUpdate(timeSheetHolder);
>>
>
> Try this instead: timeSheetHolder = session.merge(timeSheetHolder);
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York

Reply via email to