Changeset 98f448a for sources/app/src/main/java/parkup/entities/Worker.java
- Timestamp:
- 02/02/22 19:35:14 (2 years ago)
- Branches:
- master
- Children:
- 80ddcae, c71fa06
- Parents:
- df4089c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/app/src/main/java/parkup/entities/Worker.java
rdf4089c r98f448a 60 60 private UserRole role; 61 61 62 @ManyToMany (cascade = {CascadeType.ALL})62 @ManyToMany 63 63 private List<ParkingZone> parkingZones; 64 64 … … 78 78 79 79 public Worker() { 80 this.role = UserRole. WORKER;80 this.role = UserRole.ROLE_WORKER; 81 81 this.parkingZones = new ArrayList<ParkingZone>(); 82 82 this.enabled = true; … … 92 92 this.mobile = mobile; 93 93 this.parkingZones = parkingZones; 94 this.role = UserRole. WORKER;94 this.role = UserRole.ROLE_WORKER; 95 95 this.enabled = true; 96 96 this.status = EmployeeStatus.NOT_WORKING; … … 104 104 this.mobile = mobile; 105 105 this.parkingZones = parkingZones; 106 this.role = UserRole. WORKER;106 this.role = UserRole.ROLE_WORKER; 107 107 this.enabled = true; 108 108 this.status = EmployeeStatus.NOT_WORKING; … … 116 116 this.mobile=mobile; 117 117 this.parkingZones=new ArrayList<>(); 118 this.role = UserRole. WORKER;118 this.role = UserRole.ROLE_WORKER; 119 119 this.enabled=true; 120 120 this.status = EmployeeStatus.NOT_WORKING;
Note:
See TracChangeset
for help on using the changeset viewer.