Changeset d37f9ee


Ignore:
Timestamp:
01/03/23 17:33:49 (2 years ago)
Author:
DarkoSasanski <darko.sasanski@…>
Branches:
main
Children:
6fbe067
Parents:
5c142f7
Message:

Added jpa repository interfaces

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  
    2727    @ManyToMany(mappedBy = "categoryList")
    2828    private List<Articles> articlesList=new ArrayList<>();
    29     @ManyToMany(mappedBy = "categoryList2")
     29    @ManyToMany(mappedBy = "categoryList")
    3030    private List<Suppliers> suppliersList=new ArrayList<>();
    3131
  • FullyStocked/src/main/java/com/bazi/fullystocked/Models/Invoices.java

    r5c142f7 rd37f9ee  
    88import javax.validation.constraints.NotNull;
    99import java.time.LocalDateTime;
     10import java.util.*;
    1011
    1112@Data
     
    2728    @JoinColumn(name = "workeruserid")
    2829    private Workers worker;
     30    @OneToMany(mappedBy = "invoice")
     31    private List<InvoicedArticles>articlesList=new ArrayList<>();
    2932
    3033    public Invoices(Workers worker) {
  • FullyStocked/src/main/java/com/bazi/fullystocked/Models/Orders.java

    r5c142f7 rd37f9ee  
    1010import javax.validation.constraints.NotNull;
    1111import java.time.LocalDateTime;
     12import java.util.*;
    1213
    1314@Data
     
    3637    @JoinColumn(name = "supplieruserid")
    3738    private Suppliers supplier;
     39    @OneToMany(mappedBy="order")
     40    private List<OrderedArticles> articlesList=new ArrayList<>();
    3841
    3942    public Orders(OrderPriority priority, Managers manager, Suppliers supplier) {
  • FullyStocked/src/main/java/com/bazi/fullystocked/Models/Suppliers.java

    r5c142f7 rd37f9ee  
    4040            inverseJoinColumns = @JoinColumn(name = "categoryid")
    4141    )
    42     private List<Categories> categoryList2=new ArrayList<>();
     42    private List<Categories> categoryList=new ArrayList<>();
    4343
    4444    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.