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/RepairShop.java

    r23a2bc5 reaf0f1b  
    11package com.example.autopartz.model;
    22
    3 import jakarta.persistence.Entity;
    4 import jakarta.persistence.Id;
    5 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    64import lombok.*;
    75import org.hibernate.Hibernate;
    86
     7import java.util.List;
    98import java.util.Objects;
    109
     
    2120    String rs_location;
    2221    String rs_phone_number;
     22    @ManyToMany
     23    @JoinTable(name = "repair_shop_is_authorized_for_car_make", joinColumns =
     24    @JoinColumn(name = "id_repair_shop"),
     25            inverseJoinColumns = @JoinColumn(name = "id_car_manufacturer"))
     26    @ToString.Exclude
     27    List<CarManufacturer> carManufacturerList;
    2328
    2429    @Override
Note: See TracChangeset for help on using the changeset viewer.