source: sources/app/src/main/java/parkup/data/Plate.java@ 9dd526f

Last change on this file since 9dd526f was 9dd526f, checked in by andrejTavchioski <andrej.tavchioski@…>, 2 years ago

backend refactoring

  • Property mode set to 100644
File size: 780 bytes
Line 
1package parkup.data;
2
3import javax.persistence.*;
4
5@Entity
6public class Plate {
7 @Id
8 @SequenceGenerator(
9 name="plate_sequence_generator",
10 sequenceName = "plate_sequence",
11 allocationSize = 1,
12 initialValue = 1000
13 )
14 @GeneratedValue( //za postgres treba sequence da se namesti i ime na generator mi ga davamo kako od gore sto e
15 strategy = GenerationType.SEQUENCE,
16 generator = "plate_sequence_generator"
17 )
18 private int plateId;
19
20 private String plate;
21
22 public Plate() {}
23
24 public Plate(String plate) {
25 this.plate = plate;
26 }
27
28 public String getPlate() {
29 return this.plate;
30 }
31
32 public void setPlate(String plate) {
33 this.plate = plate;
34 }
35}
Note: See TracBrowser for help on using the repository browser.