Hibernate 最简单例子 (8)

    private String lastName;

 

    private Long dateCreated;

 

    // Constructors

 

    /**defaultconstructor*/

    public AbstractUser() {

    }

 

    /**fullconstructor*/

    public AbstractUser(Integer id, String username, String password,

           String firstName, String lastName, Long dateCreated) {

       this.id = id;

       this.username = username;

       this.password = password;

       this.firstName = firstName;

       this.lastName = lastName;

       this.dateCreated = dateCreated;

    }

 

    // Property accessors

 

    public Integer getId() {

       returnthis.id;

    }

 

    publicvoid setId(Integer id) {

       this.id = id;

    }

 

    public String getUsername() {

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzjzyw.html