The User Class
Let's begin by looking at the User class because the user/customer is usually the center of the application's purpose. What do you need to know about a user?
Obviously, the client will have information that he wants you to capture about the user—things that aren't directly related to making the application work but that are important to the business model. For example, the fact that the customer's phone number is required doesn't really change the way the site works much in terms of design, but it can be critical for the business users from an operational standpoint. For example, they might want to call a customer if there is a problem with an order.
In addition to the client's requirements, you'll find the need for housekeeping ...
Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.