点击这里给我发消息 点击这里给我发消息

一个简单JAVA网络通讯录

添加时间:2013-12-7
    相关阅读: 技术 网络 HTML

 定义一个简单的JAVABEAN;

    定义一个简单的JAVABEAN;
    我是用exlipse编写的,这里没有导包的功能,只能把内容列这里了,用到的技术有:servlete,hibernate

    我是用exlipse编写的,这里没有导包的功能,只能把内容列这里了,用到的技术有:servlete,hibernate
    mysql,用HTML编写的映射文档;

    mysql,用HTML编写的映射文档;    package model;

    public class User {

        private int id;

        private String username;

        private String password;

        private String realName;

        private String sex;

        private String school;

        private String address;

        private String email;

        private String phone;

        public User(String username, String password) {

            this.username = username;

            this.password = password;

        }

        public User() {

        }

        public String getUsername() {

            return username;

        }

        public void setUsername(String username) {

            this.username = username;

        }

        public String getPassword() {

            return password;

        }

        public void setPassword(String password) {

            this.password = password;

        }

        public String getRealName() {

            return realName;

        }

        public void setRealName(String realName) {

            this.realName = realName;

        }

        public String getSex() {

            return sex;

        }

        public void setSex(String sex) {

            this.sex = sex;

        }

        public String getSchool() {

            return school;

        }

        public void setSchool(String school) {

            this.school = school;

        }

        public String getAddress() {

            return address;

        }

        public void setAddress(String address) {

            this.address = address;

        }

        public String getEmail() {

            return email;

        }

        public void setEmail(String email) {

            this.email = email;

        }

        public String getPhone() {

            return phone;

        }

        public void setPhone(String phone) {

            this.phone = phone;

        }

        public int getId() {

            return id;

        }

        public void setId(int id) {

            this.id = id;

        }

    }

    package model;

    public class User {

     private int id;

     private String username;

     private String password;

     private String realName;

     private String sex;

     private String school;

     private String address;

     private String email;

     private String phone;

     public User(String username, String password) {

      this.username = username;

      this.password = password;

     }

     public User() {

     }

     public String getUsername() {

      return username;

     }

     public void setUsername(String username) {

      this.username = username;

     }

     public String getPassword() {

      return password;

     }

     public void setPassword(String password) {

      this.password = password;

     }

     public String getRealName() {

      return realName;

     }

     public void setRealName(String realName) {

      this.realName = realName;

     }

     public String getSex() {

      return sex;

     }

     public void setSex(String sex) {

      this.sex = sex;

     }

     public String getSchool() {

      return school;

     }

     public void setSchool(String school) {

      this.school = school;

     }

     public String getAddress() {

      return address;

     }

     public void setAddress(String address) {

      this.address = address;

     }

     public String getEmail() {

      return email;

     }

     public void setEmail(String email) {

      this.email = email;

     }

 

[1] [2] [3] [4] 下一页

咨询热线:020-85648757 85648755 85648616 0755-27912581 客服:020-85648756 0755-27912581 业务传真:020-32579052
广州市网景网络科技有限公司 Copyright◎2003-2008 Veelink.com. All Rights Reserved.
广州商务地址:广东省广州市黄埔大道中203号(海景园区)海景花园C栋501室
= 深圳商务地址:深圳市宝源路华丰宝源大厦606
研发中心:广东广州市天河软件园海景园区 粤ICP备05103322号 工商注册