Hi
i have two tables one have primary key and the secondry table has foreign key.
i generate a autoId increment which want to inserted in primary and secondary table when the user enters the register button
hw to do the exercise
can any one give the solution
@Name("user3") @Table(name = "TBL_REVIEWS") @SecondaryTable(name="TBL_USER_REVIEWS", pkJoinColumns={ @PrimaryKeyJoinColumn(name="REVIEW_ENTRY_ID")}) public class TblWriteReviews implements Serializable { @Id @GeneratedValue(generator="IdSeq") @SequenceGenerator(name="IdSeq",sequenceName="REVIEW_ENTRY_ID_SEQ", allocationSize=1) @Column(name = "REVIEW_ENTRY_ID")