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")
where the reviewEntryId is auto generated and want to be entered when the
register button is entered
can any one help me
thank u regards
kavi
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064930#4064930
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064930
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user