- Timestamp:
- 12/24/21 23:31:23 (3 years ago)
- Branches:
- master
- Children:
- 9dd526f
- Parents:
- 8588fcb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/app/src/main/java/parkup/entities/ParkingZone.java
r8588fcb r9ff45d6 30 30 private int price; 31 31 32 @Transient 32 33 @Column(name = "capacity") 33 34 private int capacity; 34 35 <<<<<<< HEAD36 35 @Column(name = "time_from") //za rabotni casovi od: 37 36 private int from; 38 37 39 38 @Column(name = "time_to") //za rabotni casovi do: 40 =======41 @Column(name = "vreme_od") //za rabotni casovi od:42 private int from;43 44 @Column(name = "vreme_do") //za rabotni casovi do:45 >>>>>>> 9504a097ce80831ea7e7130dff7215d5fbf8e93946 39 private int to; 47 40 48 @Column(name = " lokacija")49 private String location;41 @Column(name = "address") 42 private String address; 50 43 44 @Transient 51 45 @Column(name = "zafateniMesta") 52 private int zafateniMesta;46 private int takenSpaces; 53 47 54 48 @Column(name = "color") 55 49 private String color; 56 50 57 @ManyToMany(cascade = {CascadeType.ALL}) 58 @JoinColumn(name="odgovorniLica",nullable = true) 59 private List<Vraboten> odgovorniLica; 51 // @ManyToMany(cascade = {CascadeType.ALL}) 52 // private List<Vraboten> odgovorniLica; 60 53 61 @OneToMany(cascade = {CascadeType. ALL})54 @OneToMany(cascade = {CascadeType.MERGE}) 62 55 private List<ParkingSpace> parkingSpaces; 56 57 63 58 64 59 @OneToOne(cascade = {CascadeType.ALL}) … … 66 61 67 62 public ParkingZone() { 68 this. zafateniMesta= 0;63 this.takenSpaces = 0; 69 64 this.parkingSpaces = new ArrayList<ParkingSpace>(); 70 65 } … … 72 67 public ParkingZone(String pzName) { 73 68 this.pzName = pzName; 74 this. zafateniMesta= 0;69 this.takenSpaces = 0; 75 70 this.parkingSpaces = new ArrayList<ParkingSpace>(); 76 71 } 77 72 78 public ParkingZone(int pzId, String pzName, int price, int capacity, String location, List<ParkingSpace> parkingSpaces, String color, int from, int to) {73 public ParkingZone(int pzId, String pzName, int price, int capacity, String address, List<ParkingSpace> parkingSpaces, String color, int from, int to) { 79 74 this.pzId = pzId; 80 75 this.pzName = pzName; 81 76 this.price = price; 82 77 this.capacity = capacity; 83 this. location = location;84 this. zafateniMesta= 0;78 this.address = address; 79 this.takenSpaces = 0; 85 80 this.parkingSpaces = parkingSpaces; 86 81 this.color = color; … … 89 84 } 90 85 91 public ParkingZone(String pzName, int price, int capacity, String location, List<ParkingSpace> parkingSpaces, String color, int from, int to) {86 public ParkingZone(String pzName, int price, int capacity, String address, List<ParkingSpace> parkingSpaces, String color, int from, int to) { 92 87 this.pzName = pzName; 93 88 this.price = price; 94 89 this.capacity = capacity; 95 this. location = location;96 this. zafateniMesta= 0;90 this.address = address; 91 this.takenSpaces = 0; 97 92 this.parkingSpaces = parkingSpaces; 98 93 this.color = color; … … 133 128 } 134 129 135 public String get Location() {136 return this. location;130 public String getAddress() { 131 return this.address; 137 132 } 138 133 139 public void set Location(String location) {140 this. location= location;134 public void setAddress(String location) { 135 this.address = location; 141 136 } 142 137 143 public int get ZafateniMesta() {return zafateniMesta;}138 public int getTakenSpaces() {return takenSpaces;} 144 139 145 public void set ZafateniMesta(int zafateniMesta) {this.zafateniMesta = zafateniMesta;}140 public void setTakenSpaces(int takenSpaces) {this.takenSpaces = takenSpaces;} 146 141 147 142 public List<ParkingSpace> getParkingSpaces() {return parkingSpaces;} … … 181 176 } 182 177 183 public List<Vraboten> getOdgovorniLica() {184 return odgovorniLica;185 }186 187 public void setOdgovorniLica(List<Vraboten> odgovorniLica) {188 this.odgovorniLica = odgovorniLica;189 }178 // public List<Vraboten> getOdgovorniLica() { 179 // return odgovorniLica; 180 // } 181 // 182 // public void setOdgovorniLica(List<Vraboten> odgovorniLica) { 183 // this.odgovorniLica = odgovorniLica; 184 // } 190 185 }
Note:
See TracChangeset
for help on using the changeset viewer.