Ignore:
Timestamp:
02/04/23 21:01:13 (22 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
693f587
Parents:
a554435
Message:

home controller added mappings for add new film, event and projection

Location:
src/main/java/com/example/moviezone/model
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/model/Event.java

    ra554435 r302b233  
    2727    LocalDate start_date;
    2828
     29    public Event(String theme, String duration, String repeating, LocalDate start_date) {
     30        this.theme = theme;
     31        this.duration = duration;
     32        this.repeating = repeating;
     33        this.start_date = start_date;
     34    }
    2935}
  • src/main/java/com/example/moviezone/model/Film.java

    ra554435 r302b233  
    3131    LocalDate end_date;
    3232
    33 
     33    public Film(String name, Integer duration, String actors, String genre, String age_category, String url, String director, LocalDate start_date, LocalDate end_date) {
     34        this.name = name;
     35        this.duration = duration;
     36        this.actors = actors;
     37        this.genre = genre;
     38        this.age_category = age_category;
     39        this.url = url;
     40        this.director = director;
     41        this.start_date = start_date;
     42        this.end_date = end_date;
     43    }
    3444}
  • src/main/java/com/example/moviezone/model/Projection.java

    ra554435 r302b233  
    3333    Discount discount;
    3434
     35    public Projection(LocalDate date_time_start, String type_of_technology, LocalDate date_time_end, Film film) {
     36        this.date_time_start = date_time_start;
     37        this.type_of_technology = type_of_technology;
     38        this.date_time_end = date_time_end;
     39        this.film = film;
     40    }
    3541}
Note: See TracChangeset for help on using the changeset viewer.