Date post: | 14-May-2015 |
Category: |
Technology |
Upload: | guo-albert |
View: | 1,133 times |
Download: | 7 times |
• Prerequisites
• Form Bean Creation Process
• Example
• Single table
• Multiple tables
Agenda
• 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 trunk\SDS\deliverable
• Schema document can be found in trunk\SDS\schema\index.html
Prerequisites
15C – tables 23H – user interfaces
Mapping UI columns with
Schema Document
Mapping Schema Document with
entity class
Create form bean class
Copy mapping attributes from
entity class to form bean
Generate setters/getters
Form Bean Creation Process
Single table
• If we would like to create a form bean NIG670W (獎金分配速算公式), the process is as bellowing:
Scenario
• File path: trunk\SDS\deliverable
Check 15C.doc
• File path: trunk\SDS\deliverable
Check NIG-23H-670W.doc
• File path: trunk\SDS\schema\index.html
Schema Document
Schema Document – cont.
Create Form Bean Class
Create Form Bean Class – cont.
Copy mapping attributes
Paste to NIG670DataBean
And add fn attribute to each data bean
Generate setters/getters
Right click Source Generate Getters and Setters
Generate setters/getters – cont.
Select all OK
Finally, add serial version ID Left click on this warning icon
Multiple tables
• If we would like to create a form bean NIG640W (列印檢舉人獎金應發放月報), the process is as bellowing:
Scenario
• File path: trunk\SDS\deliverable
Check 15C.doc
• File path: trunk\SDS\deliverable
Check NIG-23H-680W.doc
• File path: trunk\SDS\schema\index.html
Schema Document
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