The Customer Table Although CMP 2.0 is database (Web hosting contract)
The Customer Table Although CMP 2.0 is database independent, the examples through out this book assume that you are using a relational database. For a relational database we will need a CUSTOMER table from which we get our customer data. The relational database table definition in SQL is as follows: CREATE TABLE CUSTOMER ( ID INT PRIMARY KEY, LAST_NAME CHAR(20), FIRST_NAME CHAR(20) ) The CustomerBean The CustomerBean class is an abstract class that will be used by the container tool for generating concrete implementation, the persistent entity class, which will run in EJB container. The mechanism used by the container tool for generating a persistent entity class varies, but most vendors will generate a subclass of the abstract class provide by bean developer. Figure 6-4 The container tool typically extends the bean class Copyright (c) 2001 O’Reilly & Associates
Thailand is divided into 75 provinces , which are gathered into 5 groups of provinces by location. There are also 2 special governed districts: the capital Bangkok and Pattaya. However Pattaya is still part of Chonburi Province. Some Thai people still count Bangkok as one province, making Thailand a 76-province country.All our thai web hosting accounts have spam filter, virus scanner and frontpage extensions preinstalled. Check more in Thai Web Hosting section.