Changeset eb226b2 for src/main/java/com/example/moviezone/model
- Timestamp:
- 02/04/23 00:39:48 (22 months ago)
- Branches:
- master
- Children:
- 2269653
- Parents:
- ac25203
- Location:
- src/main/java/com/example/moviezone/model
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/Film.java
rac25203 reb226b2 24 24 String genre; 25 25 String age_category; 26 26 String url; 27 27 String director; 28 28 LocalDate start_date; -
src/main/java/com/example/moviezone/model/Projection.java
rac25203 reb226b2 24 24 LocalDate date_time_end; 25 25 @ManyToOne 26 @JoinColumn(name = "id_film") 26 27 Film film; 27 28 @ManyToOne 29 @JoinColumn(name = "id_event") 28 30 Event event; 29 31 @ManyToOne 32 @JoinColumn(name = "id_discount") 30 33 Discount discount; 31 34 -
src/main/java/com/example/moviezone/model/Projection_Room.java
rac25203 reb226b2 20 20 Integer projection_room_number; 21 21 @ManyToOne 22 @JoinColumn(name = "id_cinema") 22 23 Cinema cinema; 23 24 -
src/main/java/com/example/moviezone/model/Salary.java
rac25203 reb226b2 24 24 25 25 @ManyToOne 26 @JoinColumn(name = "id_worker") 26 27 Worker worker; 27 28 } -
src/main/java/com/example/moviezone/model/Seat.java
rac25203 reb226b2 18 18 Integer seat_number; 19 19 @ManyToOne 20 @JoinColumn(name = "id_room") 20 21 Projection_Room projection_room; 21 22 @ManyToOne 23 @JoinColumn(name = "id_category") 22 24 Category category; 23 25 -
src/main/java/com/example/moviezone/model/Ticket.java
rac25203 reb226b2 6 6 import lombok.ToString; 7 7 8 import java.time.LocalDate; 8 9 import java.time.LocalDateTime; 9 10 … … 20 21 21 22 Integer price; 22 LocalDate Timedate_reserved;23 LocalDate date_reserved; 23 24 24 25 @ManyToOne 26 @JoinColumn(name = "id_customer") 25 27 Customer customer; 26 28 -
src/main/java/com/example/moviezone/model/User.java
rac25203 reb226b2 9 9 10 10 import javax.management.relation.Role; 11 import java.time.LocalDate; 11 12 import java.time.LocalDateTime; 12 13 import java.util.Collection; … … 29 30 String contact_number; 30 31 String username; 31 LocalDate Timedate_created;32 LocalDate date_created; 32 33 33 private boolean isAccountNonExpired = true;34 private boolean isAccountNonLocked = true;35 private boolean isCredentialsNonExpired = true;36 private boolean isEnabled = true;37 34 38 @Enumerated(value = EnumType.STRING) 39 private Role role; 40 41 public User(Integer id_user, String password, String first_name, String last_name, String address, String contact_number, String username, LocalDateTime date_created, Role role) { 35 public User(Integer id_user, String password, String first_name, String last_name, String address, String contact_number, String username, LocalDate date_created) { 42 36 this.id_user = id_user; 43 37 this.password = password; … … 48 42 this.username = username; 49 43 this.date_created = date_created; 50 this.role = role;51 44 } 52 45 … … 63 56 @Override 64 57 public boolean isAccountNonExpired() { 65 return isAccountNonExpired;58 return true; 66 59 } 67 60 68 61 @Override 69 62 public boolean isAccountNonLocked() { 70 return isAccountNonLocked;63 return true; 71 64 } 72 65 73 66 @Override 74 67 public boolean isCredentialsNonExpired() { 75 return isCredentialsNonExpired;68 return true; 76 69 } 77 70 78 71 @Override 79 72 public boolean isEnabled() { 80 return isEnabled;73 return true; 81 74 } 82 75 -
src/main/java/com/example/moviezone/model/Work_Hours_Weekly.java
rac25203 reb226b2 30 30 31 31 @ManyToOne 32 @JoinColumn(name = "id_worker") 32 33 Worker worker; 33 34 } -
src/main/java/com/example/moviezone/model/Worker.java
rac25203 reb226b2 23 23 String work_hours_to; 24 24 25 @ManyToOne() 25 @ManyToOne 26 @JoinColumn(name = "id_cinema") 26 27 Cinema cinema; 27 28 @Override -
src/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEvent.java
rac25203 reb226b2 13 13 @RequiredArgsConstructor 14 14 @Table(name = "`customer_is_interested_in_event`") 15 @IdClass(C inemaPlaysFilmId.class)15 @IdClass(CustomerIsInterestedInEventId.class) 16 16 public class CustomerIsInterestedInEvent { 17 17 @Id
Note:
See TracChangeset
for help on using the changeset viewer.