From a85e654dd1090aebd1bfaaea6df126c38c40424b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E9=93=96=E6=B5=A9?= <1136734375@qq.com> Date: Mon, 5 Jun 2023 23:27:59 +0800 Subject: [PATCH] zy --- .../JDBC\344\275\234\344\270\2322.md" | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 "05 \350\260\242\351\223\226\346\265\251/JDBC\344\275\234\344\270\2322.md" diff --git "a/05 \350\260\242\351\223\226\346\265\251/JDBC\344\275\234\344\270\2322.md" "b/05 \350\260\242\351\223\226\346\265\251/JDBC\344\275\234\344\270\2322.md" new file mode 100644 index 0000000..ec58ab9 --- /dev/null +++ "b/05 \350\260\242\351\223\226\346\265\251/JDBC\344\275\234\344\270\2322.md" @@ -0,0 +1,128 @@ + +​ +​ +```java + public class Brand { + private int brandId; + private String brandName; + public Brand() { + }public Brand(int brandId, String brandName) { + this.brandId = brandId; + this.brandName = brandName; +} + +public int getBrandId() { + return brandId; +} + +public void setBrandId(int brandId) { + this.brandId = brandId; +} + +public String getBrandName() { + return brandName; +} + +public void setBrandName(String brandName) { + this.brandName = brandName; +} + +@Override +public String toString() { + return "Brand{" + + "brandId=" + brandId + + ", brandName='" + brandName + '\'' + + '}'; +} +} +public class CarDetail { + private int cId; + private String cName; + private String content; + private Date lTime; + private int price; + private int BrandID; + private String brandName; +public CarDetail() { +} + +public CarDetail(int cId, String cName, String content, Date lTime, int price, int brandID, String brandName) { + this.cId = cId; + this.cName = cName; + this.content = content; + this.lTime = lTime; + this.price = price; + BrandID = brandID; + this.brandName = brandName; +} + +public int getcId() { + return cId; +} + +public void setcId(int cId) { + this.cId = cId; +} + +public String getcName() { + return cName; +} + +public void setcName(String cName) { + this.cName = cName; +} + +public String getContent() { + return content; +} + +public void setContent(String content) { + this.content = content; +} + +public Date getlTime() { + return lTime; +} + +public void setlTime(Date lTime) { + this.lTime = lTime; +} + +public int getPrice() { + return price; +} + +public void setPrice(int price) { + this.price = price; +} + +public int getBrandID() { + return BrandID; +} + +public void setBrandID(int brandID) { + BrandID = brandID; +} + +public String getBrandName() { + return brandName; +} + +public void setBrandName(String brandName) { + this.brandName = brandName; +} + +@Override +public String toString() { + return "CarDetail{" + + "cId=" + cId + + ", cName='" + cName + '\'' + + ", content='" + content + '\'' + + ", lTime=" + lTime + + ", price=" + price + + ", BrandID=" + BrandID + + ", brandName='" + brandName + '\'' + + '}'; +} +} +``` \ No newline at end of file -- Gitee