Last change
on this file since fc7ec52 was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 22 months ago |
all files
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[fc7ec52] | 1 | package com.example.demo.model;
|
---|
| 2 |
|
---|
| 3 | import com.example.demo.model.Gives.Gives;
|
---|
| 4 | import lombok.Data;
|
---|
| 5 |
|
---|
| 6 | import javax.persistence.*;
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | @Entity
|
---|
| 10 | @Table(name="auditorium")
|
---|
| 11 | public class Auditorium {
|
---|
| 12 |
|
---|
| 13 | @Id
|
---|
| 14 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 15 | Integer auditorium_id;
|
---|
| 16 |
|
---|
| 17 | String auditorium_name;
|
---|
| 18 | Integer auditorium_capacity;
|
---|
| 19 |
|
---|
| 20 | @ManyToOne
|
---|
| 21 | @JoinColumn(name = "firm_id")
|
---|
| 22 | public Firm firm;
|
---|
| 23 |
|
---|
| 24 | public Auditorium(Integer auditorium_id, String auditorium_name, Integer auditorium_capacity, Firm firm) {
|
---|
| 25 | this.auditorium_id = auditorium_id;
|
---|
| 26 | this.auditorium_name = auditorium_name;
|
---|
| 27 | this.auditorium_capacity = auditorium_capacity;
|
---|
| 28 | this.firm = firm;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | public Auditorium() {
|
---|
| 32 |
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | public Integer getAuditorium_id() {
|
---|
| 36 | return auditorium_id;
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | public void setAuditorium_id(Integer auditorium_id) {
|
---|
| 40 | this.auditorium_id = auditorium_id;
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | public String getAuditorium_name() {
|
---|
| 44 | return auditorium_name;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | public void setAuditorium_name(String auditorium_name) {
|
---|
| 48 | this.auditorium_name = auditorium_name;
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | public Integer getAuditorium_capacity() {
|
---|
| 52 | return auditorium_capacity;
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | public void setAuditorium_capacity(Integer auditorium_capacity) {
|
---|
| 56 | this.auditorium_capacity = auditorium_capacity;
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | public Firm getFirm() {
|
---|
| 60 | return firm;
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | public void setFirm(Firm firm) {
|
---|
| 64 | this.firm = firm;
|
---|
| 65 | }
|
---|
| 66 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.