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 | |
---|
1 | package com.example.autopartz.model.manytomany;
|
---|
2 |
|
---|
3 | import lombok.Getter;
|
---|
4 | import lombok.RequiredArgsConstructor;
|
---|
5 | import lombok.Setter;
|
---|
6 | import lombok.ToString;
|
---|
7 |
|
---|
8 | import 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)
|
---|
17 | public 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.