Changeset d37f9ee
- Timestamp:
- 01/03/23 17:33:49 (2 years ago)
- Branches:
- main
- Children:
- 6fbe067
- Parents:
- 5c142f7
- Location:
- FullyStocked/src/main/java/com/bazi/fullystocked
- Files:
-
- 18 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
FullyStocked/src/main/java/com/bazi/fullystocked/Models/Categories.java
r5c142f7 rd37f9ee 27 27 @ManyToMany(mappedBy = "categoryList") 28 28 private List<Articles> articlesList=new ArrayList<>(); 29 @ManyToMany(mappedBy = "categoryList 2")29 @ManyToMany(mappedBy = "categoryList") 30 30 private List<Suppliers> suppliersList=new ArrayList<>(); 31 31 -
FullyStocked/src/main/java/com/bazi/fullystocked/Models/Invoices.java
r5c142f7 rd37f9ee 8 8 import javax.validation.constraints.NotNull; 9 9 import java.time.LocalDateTime; 10 import java.util.*; 10 11 11 12 @Data … … 27 28 @JoinColumn(name = "workeruserid") 28 29 private Workers worker; 30 @OneToMany(mappedBy = "invoice") 31 private List<InvoicedArticles>articlesList=new ArrayList<>(); 29 32 30 33 public Invoices(Workers worker) { -
FullyStocked/src/main/java/com/bazi/fullystocked/Models/Orders.java
r5c142f7 rd37f9ee 10 10 import javax.validation.constraints.NotNull; 11 11 import java.time.LocalDateTime; 12 import java.util.*; 12 13 13 14 @Data … … 36 37 @JoinColumn(name = "supplieruserid") 37 38 private Suppliers supplier; 39 @OneToMany(mappedBy="order") 40 private List<OrderedArticles> articlesList=new ArrayList<>(); 38 41 39 42 public Orders(OrderPriority priority, Managers manager, Suppliers supplier) { -
FullyStocked/src/main/java/com/bazi/fullystocked/Models/Suppliers.java
r5c142f7 rd37f9ee 40 40 inverseJoinColumns = @JoinColumn(name = "categoryid") 41 41 ) 42 private List<Categories> categoryList 2=new ArrayList<>();42 private List<Categories> categoryList=new ArrayList<>(); 43 43 44 44 public Suppliers(String firstname, String lastname, String username, String email, String password, String supplierinfo, String phone, String street, int sttreetnumber, String city) {
Note:
See TracChangeset
for help on using the changeset viewer.