Commit 1418b646 by Patryk Czarnik

dziwne zmiany w klasie Product

parent ea657cee
......@@ -30,7 +30,7 @@ public class Product {
}
public String getProductName() {
return productName;
return productName.toUpperCase();
}
public void setProductName(String productName) {
......@@ -41,8 +41,16 @@ public class Product {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
// public void setPrice(BigDecimal price) {
// this.price = price;
// }
public String getNiespodzianka() {
return "a kuku";
}
public void setNiespodzianka(String x) {
}
public BigDecimal getVat() {
......
......@@ -22,7 +22,7 @@ import sklep.photo.PhotoUtil;
public class Sklep {
@WebResult(name="product")
public List<Product> readAllProducts() throws DBException {
try (DBConnection db = DBConnection.open()) {
try(DBConnection db = DBConnection.open()) {
ProductDAO productDAO = db.productDAO();
return productDAO.readAll();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment