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

Added jpa repository interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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) {
Note: See TracChangeset for help on using the changeset viewer.