Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Inventory.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ public class Inventory extends UriEntity {
private String location;

private int totalStock;


}
10 changes: 2 additions & 8 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Product.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,8 @@ public class Product extends UriEntity<Long>{
// @ManyToMany
// private Set<Basket> baskets;


//TODO
// @OneToMany(cascade = CascadeType.ALL)
// private Set<Loyalty> loyalties;
//
//TODO
// @ManyToOne
// private Inventory inventory;
@ManyToOne
private Inventory inventory;


}
Loading