Changeset 1e7126f for src/main/java/com/example/moviezone/model
- Timestamp:
- 08/24/23 02:28:14 (15 months ago)
- Branches:
- master
- Children:
- bcb4acc
- Parents:
- 40935d3
- Location:
- src/main/java/com/example/moviezone/model
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/Discount.java
r40935d3 r1e7126f 29 29 String type; 30 30 Integer percent; 31 32 public Discount() { 33 } 34 35 public Discount(LocalDate validity, String code, String type, Integer percent) { 36 this.validity = validity; 37 this.code = code; 38 this.type = type; 39 this.percent = percent; 40 } 31 41 } -
src/main/java/com/example/moviezone/model/Projection.java
r40935d3 r1e7126f 8 8 9 9 import java.time.LocalDate; 10 import java.time.LocalDateTime; 10 11 11 12 @Getter … … 20 21 Integer id_projection; 21 22 22 LocalDate date_time_start;23 LocalDateTime date_time_start; 23 24 String type_of_technology; 24 LocalDate date_time_end;25 LocalDateTime date_time_end; 25 26 @ManyToOne 26 27 @JoinColumn(name = "id_film") … … 33 34 Discount discount; 34 35 35 public Projection(LocalDate date_time_start, String type_of_technology, LocalDate date_time_end, Film film) {36 public Projection(LocalDateTime date_time_start, String type_of_technology, LocalDateTime date_time_end, Film film, Discount discount) { 36 37 this.date_time_start = date_time_start; 37 38 this.type_of_technology = type_of_technology; 38 39 this.date_time_end = date_time_end; 39 40 this.film = film; 41 this.discount = discount; 40 42 } 41 43 -
src/main/java/com/example/moviezone/model/Role.java
r40935d3 r1e7126f 6 6 public enum Role implements GrantedAuthority { 7 7 8 ROLE_USER, ROLE_ADMIN ;8 ROLE_USER, ROLE_ADMIN, ROLE_WORKER; 9 9 10 10 @Override -
src/main/java/com/example/moviezone/model/Worker.java
r40935d3 r1e7126f 59 59 @Override 60 60 public Collection<? extends GrantedAuthority> getAuthorities() { 61 return Collections.singletonList(Role.ROLE_ADMIN); 61 if (position.equalsIgnoreCase("admin")) 62 return Collections.singletonList(Role.ROLE_ADMIN); 63 else{ 64 return Collections.singletonList(Role.ROLE_WORKER); 65 } 62 66 } 63 67 -
src/main/java/com/example/moviezone/model/enums/GenreEnum.java
r40935d3 r1e7126f 1 package com.example.moviezone.model;public enum GenreEnum { 1 package com.example.moviezone.model.enums; 2 3 public enum GenreEnum { 4 Animation, 5 Adventure, 6 Comedy, 7 Fantasy, 8 Crime, 9 Drama, 10 Thriller 2 11 } -
src/main/java/com/example/moviezone/model/manytomany/ProjectionIsPlayedInRoom.java
r40935d3 r1e7126f 30 30 Integer idroom; 31 31 32 32 public ProjectionIsPlayedInRoom(Integer idprojection, Integer idroom) { 33 this.idprojection = idprojection; 34 this.idroom = idroom; 35 } 33 36 } -
src/main/java/com/example/moviezone/model/procedures/TicketsCancelClass.java
r40935d3 r1e7126f 1 package com.example.moviezone.model.procedures;public class TicketsCancelClass { 1 package com.example.moviezone.model.procedures; 2 3 import com.example.moviezone.model.Ticket; 4 5 public class TicketsCancelClass { 6 public Ticket ticket; 7 public boolean canCancel; 8 9 public TicketsCancelClass(Ticket ticket, boolean canCancel) { 10 this.ticket = ticket; 11 this.canCancel = canCancel; 12 } 13 14 public TicketsCancelClass() { 15 } 2 16 }
Note:
See TracChangeset
for help on using the changeset viewer.