maran selva
2013-03-14 04:02:18 UTC
maran selva [https://community.jboss.org/people/maran_su] created the discussion
"javax.ejb.EJBTransactionRolledbackException:detached entity passed to persist in EJB3"
To view the discussion, visit: https://community.jboss.org/message/802538#802538
--------------------------------------------------------------
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
[https://community.jboss.org/message/802538#802538]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
"javax.ejb.EJBTransactionRolledbackException:detached entity passed to persist in EJB3"
To view the discussion, visit: https://community.jboss.org/message/802538#802538
--------------------------------------------------------------
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
[https://community.jboss.org/message/802538#802538]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]