Ignore:
Timestamp:
02/04/23 00:39:48 (23 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
2269653
Parents:
ac25203
Message:

Fixing errors

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  
    2424    String genre;
    2525    String age_category;
    26 
     26    String url;
    2727    String director;
    2828    LocalDate start_date;
  • src/main/java/com/example/moviezone/model/Projection.java

    rac25203 reb226b2  
    2424    LocalDate date_time_end;
    2525    @ManyToOne
     26    @JoinColumn(name = "id_film")
    2627    Film film;
    2728    @ManyToOne
     29    @JoinColumn(name = "id_event")
    2830    Event event;
    2931    @ManyToOne
     32    @JoinColumn(name = "id_discount")
    3033    Discount discount;
    3134
  • src/main/java/com/example/moviezone/model/Projection_Room.java

    rac25203 reb226b2  
    2020    Integer projection_room_number;
    2121    @ManyToOne
     22    @JoinColumn(name = "id_cinema")
    2223    Cinema cinema;
    2324
  • src/main/java/com/example/moviezone/model/Salary.java

    rac25203 reb226b2  
    2424
    2525    @ManyToOne
     26    @JoinColumn(name = "id_worker")
    2627    Worker worker;
    2728}
  • src/main/java/com/example/moviezone/model/Seat.java

    rac25203 reb226b2  
    1818    Integer seat_number;
    1919    @ManyToOne
     20    @JoinColumn(name = "id_room")
    2021    Projection_Room projection_room;
    2122    @ManyToOne
     23    @JoinColumn(name = "id_category")
    2224    Category category;
    2325
  • src/main/java/com/example/moviezone/model/Ticket.java

    rac25203 reb226b2  
    66import lombok.ToString;
    77
     8import java.time.LocalDate;
    89import java.time.LocalDateTime;
    910
     
    2021
    2122    Integer price;
    22     LocalDateTime date_reserved;
     23    LocalDate date_reserved;
    2324
    2425    @ManyToOne
     26    @JoinColumn(name = "id_customer")
    2527    Customer customer;
    2628
  • src/main/java/com/example/moviezone/model/User.java

    rac25203 reb226b2  
    99
    1010import javax.management.relation.Role;
     11import java.time.LocalDate;
    1112import java.time.LocalDateTime;
    1213import java.util.Collection;
     
    2930    String contact_number;
    3031    String username;
    31     LocalDateTime date_created;
     32    LocalDate date_created;
    3233
    33     private boolean isAccountNonExpired = true;
    34     private boolean isAccountNonLocked = true;
    35     private boolean isCredentialsNonExpired = true;
    36     private boolean isEnabled = true;
    3734
    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) {
    4236        this.id_user = id_user;
    4337        this.password = password;
     
    4842        this.username = username;
    4943        this.date_created = date_created;
    50         this.role = role;
    5144    }
    5245
     
    6356    @Override
    6457    public boolean isAccountNonExpired() {
    65         return isAccountNonExpired;
     58        return true;
    6659    }
    6760
    6861    @Override
    6962    public boolean isAccountNonLocked() {
    70         return isAccountNonLocked;
     63        return true;
    7164    }
    7265
    7366    @Override
    7467    public boolean isCredentialsNonExpired() {
    75         return isCredentialsNonExpired;
     68        return true;
    7669    }
    7770
    7871    @Override
    7972    public boolean isEnabled() {
    80         return isEnabled;
     73        return true;
    8174    }
    8275
  • src/main/java/com/example/moviezone/model/Work_Hours_Weekly.java

    rac25203 reb226b2  
    3030
    3131    @ManyToOne
     32    @JoinColumn(name = "id_worker")
    3233    Worker worker;
    3334}
  • src/main/java/com/example/moviezone/model/Worker.java

    rac25203 reb226b2  
    2323    String work_hours_to;
    2424
    25     @ManyToOne()
     25    @ManyToOne
     26    @JoinColumn(name = "id_cinema")
    2627    Cinema cinema;
    2728    @Override
  • src/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEvent.java

    rac25203 reb226b2  
    1313@RequiredArgsConstructor
    1414@Table(name = "`customer_is_interested_in_event`")
    15 @IdClass(CinemaPlaysFilmId.class)
     15@IdClass(CustomerIsInterestedInEventId.class)
    1616public class CustomerIsInterestedInEvent {
    1717    @Id
Note: See TracChangeset for help on using the changeset viewer.