[jboss-user] [JBoss Seam] - Re: persist() / remove() at end of long running conversation

fjalvingh do-not-reply at jboss.com
Sun Jul 15 20:21:59 EDT 2007


Ok; and part 2: AbstractSaveEventListener calls saveWithGeneratedId() with requiresImmediateIdAccess == false (which is good). It then generates an identifier which in my case comes from a sequence; it generates a Long. After that it defaults into a call to:

  | return performSave( entity, generatedId, persister, false, anything, source, true );
  | 

which causes requiresImmediateIdAccess in the lower calls to be true. I think the code should replace true with requiresImmediateIdAccess as the key *was* generated OK without an insert needed..

I tested that and it fixed the problem. Sadly enough it broke my patch for HHH-2588 so I'll have to look into that some more.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064390#4064390

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064390



More information about the jboss-user mailing list