[jboss-user] [EJB3] - javax.ejb.EJBTransactionRolledbackException:detached entity passed to persist in EJB3

maran selva do-not-reply at jboss.com
Thu Mar 14 00:02:18 EDT 2013

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


        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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130314/5c5d6461/attachment.html 

More information about the jboss-user mailing list