Re: [appfuse-user] Data Access Error when editing an object.

2007-06-20 Thread Matt Raible
Have you tried implementing Preparable to preload your object from the database before applying request parameters to it? If you don't have any user.* fields on your form, you might consider using CascadeType.NONE. If you'd like to see how Preparable is used, UserAction.java uses it - you can vie

Re: [appfuse-user] Data Access Error when editing an object.

2007-06-20 Thread sarat.pediredla
Ah sorry! Struts 2 with Appfuse 2.0 M5 mraible wrote: > > Which web framework are you using? > > Matt > > On 6/20/07, sarat.pediredla <[EMAIL PROTECTED]> wrote: >> >> I get the following error when I try to objectManager.save(object) >> through an >> edit interface. >> >> Object of class [org

Re: [appfuse-user] Data Access Error when editing an object.

2007-06-20 Thread Matt Raible
Which web framework are you using? Matt On 6/20/07, sarat.pediredla <[EMAIL PROTECTED]> wrote: I get the following error when I try to objectManager.save(object) through an edit interface. Object of class [org.appfuse.model.User] with identifier [1]: optimistic locking failed; nested exceptio

[appfuse-user] Data Access Error when editing an object.

2007-06-20 Thread sarat.pediredla
I get the following error when I try to objectManager.save(object) through an edit interface. Object of class [org.appfuse.model.User] with identifier [1]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or