[jboss-user] [EJB 3.0] - Re: Insert value to a coloum mapped to primary table with ma
kaviarasu
do-not-reply at jboss.com
Mon Sep 10 06:17:29 EDT 2007
@In(required=false)
| TblReviews tr=new TblReviews();
|
| @In(required=false)
| TblComments tblcomm;
| @Out(required=false)
| @RequestParameter
| Long rid4comm; (review entry id value)
|
| public void writeComment() {
| tr.setReviewEntryId(rid4comm);
| tblcomm.setReviewEntryId(tr);
| em.persist(tblcomm);
| }
if we use tr.setReviewEntryId(rid4comm); it giving error
without that it inserting
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082533#4082533
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082533
More information about the jboss-user
mailing list