Ignore:
Timestamp:
01/03/23 03:19:50 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
feffc2f
Parents:
23a2bc5
Message:

Added all ManyToMany tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/model/Order.java

    r23a2bc5 reaf0f1b  
    66
    77import java.time.LocalDateTime;
     8import java.util.List;
    89import java.util.Objects;
    910
     
    2223    @ManyToOne
    2324    Client user;
     25    @ManyToMany
     26    @JoinTable(name = "order_contains_part", joinColumns =
     27    @JoinColumn(name = "id_order"),
     28            inverseJoinColumns = @JoinColumn(name = "id_part"))
     29    @ToString.Exclude
     30    List<Part> partList;
    2431
    2532    @Override
Note: See TracChangeset for help on using the changeset viewer.