Developing Command Beans for the Model
Command beans execute a particular command and return view-helper JavaBean instances. For the item catalog module, the command beans create and return view helper beans for the different entities.
You don't have to create or initialize the entire hierarchy of view-helper JavaBeans in the command bean. You can create a single instance, an array of instances, or a subset of the hierarchy.
We will define our command beans to conform to the following conventions. You can also use these as rules for creating your command beans.
Name the Java classes or JavaBeans with the command they are executing, for example: < Command_NameCommand.
Provide getter and setter methods for the input properties.
Provide a check() ...