[jboss-user] [EJB 3.0] - Re: [JDBCExceptionReporter]'last_insert_id' is not a recogni

waynebaylor do-not-reply at jboss.com
Tue Jun 12 12:53:02 EDT 2007


It should work if both Person and Address have their ids annotated like

@Id
  | @GeneratedValue
  | private int id;
  | 
Hibernate should take care of all the details.

How are you using EntityManager to persist them?

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

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



More information about the jboss-user mailing list