JBoss Community

javax.ejb.EJBTransactionRolledbackException:detached entity passed to persist in EJB3

created by maran selva in EJB3 - View the full discussion

Hi,

 

        I am using Seam2.3.0.Final with JSF2.1.

 

In My screen , when i click the Save button first time it succesfully save the record in RTP table and Rtp_Goal table,

 

if in the same screen if i choose another record and click save i got the following exception,

"EJB Invocation failed on component RTPAction for method public abstract java.lang.String org.molplexdrug.DAO.RTPDAO.save(): javax.ejb.EJBTransactionRolledbackException: org.hibernate.PersistentObjectException: detached entity passed to persist: org.molplexdrug.EntityBean.RtpGoal"

 

i have attached my Enttiy classes can any one suggest solution for me please.

 

 

and also , after every save the values are not reset(previously saved record is showing on the screen)  how can i reset the values after every save.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community