source: source/MovieZilla-master/src/main/java/com/example/demo/model/Firm.java

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 1.2 KB
Line 
1package com.example.demo.model;
2
3
4import lombok.Data;
5
6import javax.persistence.*;
7
8@Entity
9@Data
10@Table(name="firm")
11public class Firm {
12
13 @Id
14 @GeneratedValue(strategy = GenerationType.IDENTITY)
15 Integer firm_id;
16
17 String firm_city;
18 String firm_adress;
19 String firm_name;
20
21 public Firm(Integer firm_id, String firm_city, String firm_adress, String firm_name) {
22 this.firm_id = firm_id;
23 this.firm_city = firm_city;
24 this.firm_adress = firm_adress;
25 this.firm_name = firm_name;
26 }
27
28 public Firm() {
29 }
30
31 public Integer getFirm_id() {
32 return firm_id;
33 }
34
35 public void setFirm_id(Integer firm_id) {
36 this.firm_id = firm_id;
37 }
38
39 public String getFirm_city() {
40 return firm_city;
41 }
42
43 public void setFirm_city(String firm_city) {
44 this.firm_city = firm_city;
45 }
46
47 public String getFirm_adress() {
48 return firm_adress;
49 }
50
51 public void setFirm_adress(String firm_adress) {
52 this.firm_adress = firm_adress;
53 }
54
55 public String getFirm_name() {
56 return firm_name;
57 }
58
59 public void setFirm_name(String firm_name) {
60 this.firm_name = firm_name;
61 }
62}
Note: See TracBrowser for help on using the repository browser.