[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-10 Thread jcalvert
petemuir, can you elaborate on this? What does that do, TransactionType.NOT_SUPPORTED? Does it actually affect flushing? I'm interested in potentially converting a Struts app backed by Hibernate to Seam. However we've had to set FlushMode.NEVER in many places because of the nature of our

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-10 Thread [EMAIL PROTECTED]
FrustratedBySeam wrote : The next problem is that when I delete a child row, the action is persisted to the db. Is there a way to stop this. One way to stop this is to use TransactionType.NOT_SUPPORTED View the original post :

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-10 Thread FrustratedBySeam
I think I've got it all working now with a few tweaks and using TransactionType.NOT_SUPPORTED. Thanks for the comments. Seams looking good once more. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956779#3956779 Reply to the post :

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-09 Thread petemuir
Yes it is. Perhaps if you post code and where you are having problems someone can help? The problem you mention, duplicate entry of child row: perhaps you aren't creating a new child object for the second add? I have such a page, it is based on a generic superclass that provides the standard

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-09 Thread FrustratedBySeam
This is the parent code: @Stateful @Name(eventTypeUpdate) @Conversational(ifNotBegunOutcome = eventtypefind) @LoggedIn public class EventTypeUpdateAction implements EventTypeUpdate { @PersistenceContext private EntityManager em; @In(required = false) @Out

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-09 Thread FrustratedBySeam
Sorry mean't action code. I've not posted the entities as I don't think there is anthing unusual there. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956420#3956420 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956420

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-09 Thread FrustratedBySeam
OK seem to have solved the repeating inserts. Adding a scope=PAGE on the @DataModel of the FindAction did the trick. Not sure why... The next problem is that when I delete a child row, the action is persisted to the db. Is there a way to stop this. I've been digging around for stuff on

[JBoss-user] [JBoss Seam] - Re: Is Master-Detail possible in Seam

2006-07-09 Thread petemuir
@TransactionAttribute(TransactionType.NOT_SUPPORTED) FlushMode.NEVER got removed from the EJB3 spec unfortunately, I know hibernate were going to provide it anway but it doesn't seem to be there atm. View the original post :