[jboss-user] [JBoss Seam] - Re: Example: OneToMany & Composite Key

umk do-not-reply at jboss.com
Sat Apr 28 10:13:37 EDT 2007


Actually, use this code instead of the above to invoke the entities. I just changed one line to make it standalone.

  | ...
  | // code that invokes above entities to produce the problem
  | Collection<RecordData> biomarkers = new ArrayList<RecordData>(1);
  | RecordData biomarker = new RecordData();
  | biomarker.setBiomarkerId(99L);
  | biomarker.setValue(4.4);
  | biomarkers.add(biomarker);
  | myRecord.setRecordData(biomarkers);
  | 
  | em.persist(myRecord);
  | ...
  | 

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

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



More information about the jboss-user mailing list