Here is a table named with 'product'(Table>product(name,type,price)),base on which construct a java bean named with 'product'.
不知道该如何做答,请问高手。

解决方案 »

  1.   

    根据表 创建一个JavaBean 
      

  2.   

    叫你做个基于product表的JAVABEAN模型,一个和表结构可以映射的对象
      

  3.   

    JavaBean的话比较简单啦public class Product{
        private string name="";
        private string type="";
        private string price="";    public Product(){}
        public Product(string name,string type,string price){
            ....//构造函数
        }    public void setName(string name){ 
            this.name=name;
        }
        public void setType(string type){ 
            this.type=type;
        }
        public void setPrice(string price){ 
            this.price=price;
        }    public string getName(){
            return this.name;
        }
        public string getType(){
            return this.type;
        }
        public string getPrice(){
            return this.price;
        }
    }
      

  4.   

    写惯C#了, String 老写成小写, 不好意思 ~不过也有可能是考你 EJB ENTITY BEAN怎么写? 这个就比较BT啦, 谁记得住这么多