Commit 9273074b by Patryk Czarnik

komentarz

parent 335d131a
...@@ -43,6 +43,8 @@ public class Customer implements Serializable { ...@@ -43,6 +43,8 @@ public class Customer implements Serializable {
//bi-directional many-to-one association to Order //bi-directional many-to-one association to Order
@OneToMany(mappedBy="customer") @OneToMany(mappedBy="customer")
@JsonIgnore @JsonIgnore
// W danych klienta zwracanych w JSONie nie będzie listy zamówień.
// Można y pomyśleć o stworzeniu dwóch wersji tej klasy - jedna z zamówieniami, jedna bez.
private List<Order> orders; private List<Order> orders;
public Customer() { public Customer() {
......
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