ALTERNATE KEY
ALTERNATE KEY
1.Create New Table.
2.Create a New Application.
3.Create model part with Alternate Test EO,VO,AM.
4.Create one jspx page in View Controller and Drag&Drop Alternate Test View in that page as a form.
5.Add Create Insert and Commit buttons in that form.
6.Save&Run.
7.Click on Create Insert and give the different ID, same Name and click on submit and next Commit.
8.The Data is stored in the Database.
9.Go to AlternateTestEO ,in general click on Alternate Keys and move Name.
10.Create one more Jspx page. Drag&Drop AlterNateTestView.
11 .Add CreateInsert and Commit Buttons.
12.Click on Create Insert and give the different ID, same Name and click on submit and next Commit. then we get a error because the Name attribute is set as Alternate Key
K.Prathyusha.
Comments
Post a Comment