This document provides instructions for creating form bean classes from database tables or multiple tables in Java. It outlines the prerequisites, the process which includes mapping UI columns to schema attributes, copying attributes to the form bean class, and generating setters and getters. An example for a single table form bean and multiple table form bean is also provided with steps to check relevant documents, create the class, map attributes, and generate methods.
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. 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