[jboss-user] [JBoss Seam] - Seam gen or seam framework problem?

manuel.gentile@itd.cnr.it do-not-reply at jboss.com
Wed Nov 29 06:30:49 EST 2006


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

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

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



More information about the jboss-user mailing list