Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Albert KuoAlbert_Kuo@cht.com.tw
Agenda• Prerequisites• Form Bean Creation Process• Example •   Single table •   Multiple tables
Prerequisites• Download JDK 1.6 from http://www.java.com/zh_TW/ and set up Java  environment• Download Eclipse from http:/...
Form Bean Creation Process                                             Mapping UI                           23H – user    ...
Single table
Scenario• If we would like to create a form bean NIG670W (獎金分配速算公式), the  process is as bellowing:
Check 15C.doc• File path: trunkSDSdeliverable
CheckNIG-23H-670W.doc• File path: trunkSDSdeliverable
Schema Document• File path: trunkSDSschemaindex.html
Schema Document– cont.
Create Form Bean Class
Create Form Bean Class– cont.               Copy mapping attributes                                               Paste to...
Generate setters/gettersRight click  Source  Generate Getters and Setters
Generatesetters/getters – cont. Select all  OK
Finally, add serial version ID  Left click on this warning icon
Multiple tables
Scenario• If we would like to create a form bean NIG640W (列印檢舉人獎金應發放  月報), the process is as bellowing:
Check 15C.doc• File path: trunkSDSdeliverable
CheckNIG-23H-680W.doc• File path: trunkSDSdeliverable
Schema Document• File path: trunkSDSschemaindex.html
Schema Document– cont.
Create Form Bean Class
Create Form Bean Class– cont.
Create Form Bean Class– cont.Right click  Source Generate Delegate Methods
Finally, add serial version ID  Left click on this warning icon
Form Bean Creation Process for NIG System
Form Bean Creation Process for NIG System
Form Bean Creation Process for NIG System
Form Bean Creation Process for NIG System
Form Bean Creation Process for NIG System
Form Bean Creation Process for NIG System
Upcoming SlideShare
Loading in …5
×

Form Bean Creation Process for NIG System

1,422 views

Published on

Published in: Technology, Self Improvement
  • Be the first to comment

  • Be the first to like this

Form Bean Creation Process for NIG System

  1. 1. Albert KuoAlbert_Kuo@cht.com.tw
  2. 2. Agenda• Prerequisites• Form Bean Creation Process• Example • Single table • Multiple tables
  3. 3. Prerequisites• Download JDK 1.6 from http://www.java.com/zh_TW/ and set up Java environment• Download Eclipse from http://www.eclipse.org/downloads/• Download tortoiseSVN from http://tortoisesvn.tigris.org/• Check out NIG project from http://10.144.113.114/svn/nig/trunk/SDS • SDS Document can be found in trunkSDSdeliverable • Schema document can be found in trunkSDSschemaindex.html
  4. 4. Form Bean Creation Process Mapping UI 23H – user columns with 15C – tables interfaces Schema Document Copy mapping Mapping Schema attributes from Create form bean Document with entity class to form class entity class bean Generate setters/getters
  5. 5. Single table
  6. 6. Scenario• If we would like to create a form bean NIG670W (獎金分配速算公式), the process is as bellowing:
  7. 7. Check 15C.doc• File path: trunkSDSdeliverable
  8. 8. CheckNIG-23H-670W.doc• File path: trunkSDSdeliverable
  9. 9. Schema Document• File path: trunkSDSschemaindex.html
  10. 10. Schema Document– cont.
  11. 11. Create Form Bean Class
  12. 12. Create Form Bean Class– cont. Copy mapping attributes Paste to NIG670DataBea And add fn attribute to each data bean
  13. 13. Generate setters/gettersRight click  Source  Generate Getters and Setters
  14. 14. Generatesetters/getters – cont. Select all  OK
  15. 15. Finally, add serial version ID Left click on this warning icon
  16. 16. Multiple tables
  17. 17. Scenario• If we would like to create a form bean NIG640W (列印檢舉人獎金應發放 月報), the process is as bellowing:
  18. 18. Check 15C.doc• File path: trunkSDSdeliverable
  19. 19. CheckNIG-23H-680W.doc• File path: trunkSDSdeliverable
  20. 20. Schema Document• File path: trunkSDSschemaindex.html
  21. 21. Schema Document– cont.
  22. 22. Create Form Bean Class
  23. 23. Create Form Bean Class– cont.
  24. 24. Create Form Bean Class– cont.Right click  Source Generate Delegate Methods
  25. 25. Finally, add serial version ID Left click on this warning icon

×