jsp实现仿QQ空间新建多个相册名称并向相册中添加(2)

/** * 用户实体类 * */ public class UserPOJO implements Serializable{ private static final long serialVersionUID = 7554548269035753256L; private int id; private String username; private String password; public int getId() { return id; } public void setId(int id) { this.id = id; } 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 UserPOJO(int id, String username, String password) { super(); this.id = id; this.username = username; this.password = password; } public UserPOJO(String username, String password) { this.username = username; this.password = password; } public UserPOJO() { super(); // TODO Auto-generated constructor stub } }

/** * 相册实体类 * */ public class AlbumPOJO implements Serializable{ private int id; private String a_name; private int user_id; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getA_name() { return a_name; } public void setA_name(String a_name) { this.a_name = a_name; } public int getUser_id() { return user_id; } public void setUser_id(int user_id) { this.user_id = user_id; } public AlbumPOJO(int id, String a_name, int user_id) { super(); this.id = id; this.a_name = a_name; this.user_id = user_id; } public AlbumPOJO(String a_name, int user_id) { this.a_name = a_name; this.user_id = user_id; } public AlbumPOJO() { super(); // TODO Auto-generated constructor stub } }

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

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