source: src/main/java/com/example/autopartz/model/manytomany/RsForCm.java

main
Last change on this file was 84652fb, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago

Admin views for adding things to the database

  • Property mode set to 100644
File size: 592 bytes
Line 
1package com.example.autopartz.model.manytomany;
2
3import lombok.Getter;
4import lombok.RequiredArgsConstructor;
5import lombok.Setter;
6import lombok.ToString;
7
8import javax.persistence.*;
9
10@Entity
11@Getter
12@Setter
13@ToString
14@RequiredArgsConstructor
15@Table(name = "`repair_shop_is_authorized_for_car_make`")
16@IdClass(RsForCmId.class)
17public class RsForCm {
18 @Id
19 @Column(name = "id_repair_shop")
20 Integer rsid;
21 @Column(name = "id_car_manufacturer")
22 @Id
23 Integer cmid;
24
25 public RsForCm(Integer rsid, Integer cmid) {
26 this.rsid = rsid;
27 this.cmid = cmid;
28 }
29}
Note: See TracBrowser for help on using the repository browser.