我们把数据库中的三个表在写成bean 的格式
goods.java
public class Goods { private int id; private String goodsname; private String goodsstyle; private int goodsnumber; private String storageID; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getGoodsname() { return goodsname; } public void setGoodsname(String goodsname) { this.goodsname = goodsname; } public String getGoodsstyle() { return goodsstyle; } public void setGoodsstyle(String goodsstyle) { this.goodsstyle = goodsstyle; } public int getGoodsnumber() { return goodsnumber; } public void setGoodsnumber(int goodsnumber) { this.goodsnumber = goodsnumber; } public String getStorageID() { return storageID; } public void setStorageID(String storageID) { this.storageID = storageID; } }
storage.java
public class Storage { private int id; private String storagename; private String storagestyle; private int storageID; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getStoragename() { return storagename; } public void setStoragename(String storagename) { this.storagename = storagename; } public String getStoragestyle() { return storagestyle; } public void setStoragestyle(String storagestyle) { this.storagestyle = storagestyle; } public int getStorageID() { return storageID; } public void setStorageID(int storageID) { this.storageID = storageID; } }
users.java
public class User { private int id; private String username; private String userpwd; private String flag; 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 getuserpwd() { return userpwd; } public void setuserpwd(String userpwd) { this.userpwd = userpwd; } public String getFlag() { return flag; } public void setFlag(String flag) { this.flag = flag; } }
时间: 2024-10-17 06:07:51