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
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 :
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 :
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
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
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
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
@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 :