Commit f13bb8ce by Patryk Czarnik

wypunktowanie towarów

parent fda95cfd
...@@ -24,7 +24,7 @@ public class ProductController_v2 { ...@@ -24,7 +24,7 @@ public class ProductController_v2 {
public String readAll() { public String readAll() {
return em.createNamedQuery("Product.findAll", Product.class) return em.createNamedQuery("Product.findAll", Product.class)
.getResultStream() .getResultStream()
.map(product -> product.getProductName() + " za cenę " + product.getPrice() + "\n") .map(product -> " * " + product.getProductName() + " za cenę " + product.getPrice() + "\n")
.collect(Collectors.joining()); .collect(Collectors.joining());
} }
......
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