0 Replies Latest reply on Jul 30, 2007 7:10 AM by kavi arasu

    Inserting into secondry table

    kavi arasu Newbie

      i want to insert values in primary and secondry table using JSF
      im using one to many annotation to combine primary and secondry table
      the secondry table is mapped as set
      can any one tell how to inseert values in secondry table from jsf
      i have pasted the coding below, the REVIEW_ENTRY_ID is primary key.
      i have written trigger to insert review enteryId in secondry table when it is entered in primary, i want to insert reviewHeading in secondry table,

      primary table

       private BigDecimal reviewEntryId;
       private Set<TblUserReviews> tblUserReviewsCollection;

      secondry table

       private String reviewHeading;
       private TblReviews reviewEntryId;


      <table border="0" style=" width : 771px;">
       <td>Rate the product</td>
       <td><rich:inputNumberSlider value="#{write.reviewEntryId}"/>
       <tr style=" height : 6px;">
       <td>Review Title</td>
       <td><h:inputTextarea value="#{write.reviewHeading}" style=" width : 445px; height : 34px;"></h:inputTextarea>

      Thank you