Form Bean Creation Process for NIG System

1,361 views
1,283 views

Published on

Published in: Technology, Self Improvement
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,361
On SlideShare
0
From Embeds
0
Number of Embeds
489
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

×