2 Replies Latest reply on Jan 19, 2006 9:53 PM by Chris Bitmead

    The insert-after-ejb-post-create plus sequence problem - HEL

    Chris Bitmead Newbie

      I have a CMR where the foreign key is NOT NULL. So I must turn on the insert-after-ejb-post-create option in standardjboss.xml. However I also have auto generated primary keys from oracle sequences. So now I get the error "Primary key for created instance is null", presumably because the ejb container can't cope with not getting a primary key as soon as ejbCreate completes.

      What is the solution?