0 Replies Latest reply on Nov 29, 2006 6:30 AM by Manuel Gentile

    Seam gen or seam framework problem?

    Manuel Gentile Newbie

      I have two table with a parten child relation (FK).
      Both the table have an autoincrement integer column as PK.

      Seamgen generate two entity with a one to many bidirectional relation.

      After I have inserted a new instance of Parent Entity and I try to insert the relative child I have an exception related to this inner exception

      Caused by: org.jboss.seam.framework.EntityNotFoundException
       at org.jboss.seam.framework.Home.handleNotFound(Home.java:95)
       at org.jboss.seam.framework.EntityHome.find(EntityHome.java:66)
       at org.jboss.seam.framework.Home.initInstance(Home.java:80)
       at org.jboss.seam.framework.Home.getInstance(Home.java:68)
       at org.jboss.seam.framework.Home$$FastClassByCGLIB$$76f3c0be.invoke
      



      How we have to work with autogenerated id?

      Thanks