Index: pom.xml
===================================================================
--- pom.xml	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ pom.xml	(revision 1bcb2a836fb4eec3e67695abebfc593735071a34)
@@ -6,5 +6,5 @@
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>2.7.4</version>
+        <version>3.0.2</version>
         <relativePath/> <!-- lookup parent from repository -->
     </parent>
@@ -15,16 +15,7 @@
     <description>MovieZone</description>
     <properties>
-        <java.version>17.0.5</java.version>
-        <spring-security.version>5.6.1</spring-security.version>
+        <java.version>17</java.version>
     </properties>
     <dependencies>
-        <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-data-jpa</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.thymeleaf.extras</groupId>
-            <artifactId>thymeleaf-extras-springsecurity5</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.springframework.boot</groupId>
@@ -35,11 +26,4 @@
             <artifactId>spring-boot-starter-web</artifactId>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>javax.servlet-api</artifactId>
-            <version>4.0.1</version>
-            <scope>provided</scope>
-        </dependency>
-
 
         <dependency>
@@ -51,6 +35,4 @@
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
-            <version>1.18.24</version>
-            <scope>provided</scope>
             <optional>true</optional>
         </dependency>
@@ -60,10 +42,5 @@
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-security</artifactId>
-        </dependency>
     </dependencies>
-
 
     <build>
@@ -81,13 +58,4 @@
                 </configuration>
             </plugin>
-            <plugin>
-                <groupId>com.google.cloud.tools</groupId>
-                <artifactId>appengine-maven-plugin</artifactId>
-                <version>2.2.0</version>
-                <configuration>
-                    <version>1</version>
-                    <projectId>GCLOUD_CONFIG</projectId>
-                </configuration>
-            </plugin>
         </plugins>
     </build>
Index: src/main/java/com/example/moviezone/MovieZoneApplication.java
===================================================================
--- src/main/java/com/example/moviezone/MovieZoneApplication.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ src/main/java/com/example/moviezone/MovieZoneApplication.java	(revision 1bcb2a836fb4eec3e67695abebfc593735071a34)
@@ -3,12 +3,6 @@
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
-import org.springframework.context.annotation.Bean;
-import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
-import org.springframework.security.crypto.password.PasswordEncoder;
-import org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect;
 
-
-@SpringBootApplication()
+@SpringBootApplication
 public class MovieZoneApplication {
 
@@ -16,12 +10,4 @@
         SpringApplication.run(MovieZoneApplication.class, args);
     }
-    @Bean
-    PasswordEncoder passwordEncoder() {
-        return new BCryptPasswordEncoder(10);
-    }
-    @Bean
-    public SpringSecurityDialect securityDialect() {
-        return new SpringSecurityDialect();
-    }
 
 }
Index: c/main/java/com/example/moviezone/config/CustomUsernamePasswordAuthenticationProvider.java
===================================================================
--- src/main/java/com/example/moviezone/config/CustomUsernamePasswordAuthenticationProvider.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,51 +1,0 @@
-package com.example.moviezone.config;
-
-
-import com.example.moviezone.model.exceptions.UserNotFoundException;
-import com.example.moviezone.service.UserService;
-import org.springframework.security.authentication.AuthenticationProvider;
-import org.springframework.security.authentication.BadCredentialsException;
-import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
-import org.springframework.security.core.Authentication;
-import org.springframework.security.core.AuthenticationException;
-import org.springframework.security.core.userdetails.UserDetails;
-import org.springframework.security.crypto.password.PasswordEncoder;
-import org.springframework.stereotype.Component;
-import java.util.Objects;
-
-
-@Component
-public class CustomUsernamePasswordAuthenticationProvider implements AuthenticationProvider {
-
-    private final UserService userService;
-    private final PasswordEncoder passwordEncoder;
-
-    public CustomUsernamePasswordAuthenticationProvider(UserService userService, PasswordEncoder passwordEncoder) {
-        this.userService = userService;
-        this.passwordEncoder = passwordEncoder;
-    }
-
-    @Override
-    public Authentication authenticate(Authentication authentication) throws AuthenticationException {
-        String username = authentication.getName();
-        String password = authentication.getCredentials().toString();
-
-        if ("".equals(username) || "".equals(password)) {
-            throw new BadCredentialsException("Invalid Credentials");
-        }
-
-        UserDetails userDetails = this.userService.findByUsername(username);
-
-//        String realPassword = userDetails.getPassword();
-        if (!Objects.equals(password,userDetails.getPassword())) {
-            throw new BadCredentialsException("Password is incorrect!");
-        }
-        return new UsernamePasswordAuthenticationToken(userDetails, userDetails.getPassword(), userDetails.getAuthorities());
-
-    }
-
-    @Override
-    public boolean supports(Class<?> aClass) {
-        return aClass.equals(UsernamePasswordAuthenticationToken.class);
-    }
-}
Index: c/main/java/com/example/moviezone/config/WebSecurityConfig.java
===================================================================
--- src/main/java/com/example/moviezone/config/WebSecurityConfig.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,66 +1,0 @@
-package com.example.moviezone.config;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
-import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
-import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
-import org.springframework.security.crypto.password.PasswordEncoder;
-import org.springframework.web.servlet.config.annotation.EnableWebMvc;
-
-
-@Configuration
-@EnableWebSecurity
-@EnableWebMvc
-@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true)
-public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
-
-    private final PasswordEncoder passwordEncoder;
-    private final CustomUsernamePasswordAuthenticationProvider authenticationProvider;
-
-    public WebSecurityConfig(PasswordEncoder passwordEncoder,
-                             CustomUsernamePasswordAuthenticationProvider authenticationProvider) {
-        this.passwordEncoder = passwordEncoder;
-        this.authenticationProvider = authenticationProvider;
-    }
-
-    @Override
-    protected void configure(HttpSecurity http) throws Exception {
-
-        http.csrf().disable()
-                .authorizeRequests()
-                .antMatchers("/","/films","/home/projections","/home/events","/home/getProjections/**","/home/films","/home/getFilm/**","/getFilm/**","/home/getEvent/**","/getEvent/**","/login","/events","/projections" ,"/home", "/assets/**", "/register", "/registerWorker","/api/**").permitAll()
-                .antMatchers("/","/finishRegister","/registerWorker","/films","/home/projections","/home/events","/home/getProjections/**","/home/films","/home/getFilm/**","/getFilm/**","/home/getEvent/**","/getEvent/**","redirect:/login","/login","/events","/projections" ,"/home", "/assets/**", "/register", "/api/**").permitAll()
-                .antMatchers("/home/getSeats/**","/myTickets","/home/addInterestedEvent/**","/home/deleteInterestedEvent/**","/home/addRating/**","/addRating/**","/getProjection/**","/home/makeReservation","/profileUser","/cancelTicket/**").hasRole("USER")
-                .antMatchers("/profileWorker").hasRole("WORKER")
-                .antMatchers("/**").hasRole("ADMIN")
-                .anyRequest()
-                .authenticated()
-                .and()
-                .formLogin()
-                .loginPage("/login").permitAll()
-                .failureUrl("/login?error=BadCredentials")
-                .defaultSuccessUrl("/home", true)
-                .and()
-                .logout()
-                .logoutUrl("/logout")
-                .clearAuthentication(true)
-                .invalidateHttpSession(true)
-                .deleteCookies("JSESSIONID")
-                .logoutSuccessUrl("/login")
-                .and()
-                .exceptionHandling().accessDeniedPage("/access_denied");
-
-    }
-
-    @Override
-    protected void configure(AuthenticationManagerBuilder auth) {
-//
-        auth.authenticationProvider(authenticationProvider);
-    }
-
-
-
-}
Index: c/main/java/com/example/moviezone/model/Category.java
===================================================================
--- src/main/java/com/example/moviezone/model/Category.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,52 +1,0 @@
-package com.example.moviezone.model;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-import org.springframework.security.core.userdetails.UserDetails;
-
-import javax.management.relation.Role;
-import javax.persistence.*;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Collection;
-
-
-import java.util.Objects;
-
-@Getter
-@Setter
-@ToString
-@Entity
-@Table(name = "categories")
-public class Category {
-    @Id
-    @Column(name = "id_category", nullable = false)
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer idcategory;
-    String name;
-    Integer extra_amount;
-
-    public Category(String name, Integer extra_amount) {
-        this.name = name;
-        this.extra_amount = extra_amount;
-    }
-
-    public Category() {
-
-    }
-
-    @Override
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
-        Category that = (Category) o;
-        return Objects.equals(idcategory, that.idcategory) && Objects.equals(name, that.name) && Objects.equals(extra_amount, that.extra_amount);
-    }
-
-    @Override
-    public int hashCode() {
-        return Objects.hash(idcategory, name, extra_amount);
-    }
-}
Index: c/main/java/com/example/moviezone/model/Cinema.java
===================================================================
--- src/main/java/com/example/moviezone/model/Cinema.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,25 +1,0 @@
-package com.example.moviezone.model;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import javax.persistence.*;
-
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "cinemas")
-public class Cinema {
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_cinema;
-
-    String name;
-
-    String location;
-
-}
Index: c/main/java/com/example/moviezone/model/Customer.java
===================================================================
--- src/main/java/com/example/moviezone/model/Customer.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,54 +1,0 @@
-package com.example.moviezone.model;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.hibernate.Hibernate;
-import org.springframework.security.core.GrantedAuthority;
-
-import javax.persistence.Entity;
-import javax.persistence.PrimaryKeyJoinColumn;
-import javax.persistence.Table;
-import java.time.LocalDate;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Objects;
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "customers")
-@PrimaryKeyJoinColumn(name = "id_customer")
-public class Customer extends User{
-
-
-    Integer points;
-
-    public Customer(String password, String first_name, String last_name, String address, String contact_number, String username) {
-        super(password, first_name, last_name, address, contact_number, username);
-        points=0;
-    }
-
-    public Customer() {
-
-    }
-
-    @Override
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
-        Customer customer = (Customer) o;
-        return id_user!=null && Objects.equals(id_user,customer.id_user);
-    }
-
-    @Override
-    public int hashCode() {
-        return Objects.hash();
-    }
-
-    @Override
-    public Collection<? extends GrantedAuthority> getAuthorities() {
-        return Collections.singletonList(Role.ROLE_USER);
-    }
-
-}
Index: c/main/java/com/example/moviezone/model/Discount.java
===================================================================
--- src/main/java/com/example/moviezone/model/Discount.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,41 +1,0 @@
-package com.example.moviezone.model;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-import org.springframework.security.core.userdetails.UserDetails;
-
-import javax.management.relation.Role;
-import javax.persistence.*;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Collection;
-
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "discounts")
-public class Discount {
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_discount;
-
-    LocalDate validity;
-
-    String code;
-    String type;
-    Integer percent;
-
-    public Discount() {
-    }
-
-    public Discount(LocalDate validity, String code, String type, Integer percent) {
-        this.validity = validity;
-        this.code = code;
-        this.type = type;
-        this.percent = percent;
-    }
-}
Index: c/main/java/com/example/moviezone/model/Event.java
===================================================================
--- src/main/java/com/example/moviezone/model/Event.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,41 +1,0 @@
-package com.example.moviezone.model;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import javax.persistence.*;
-
-
-import java.time.LocalDate;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "events")
-public class Event {
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_event;
-
-    String theme;
-    String duration;
-    String repeating;
-    String img_url;
-    LocalDate start_date;
-
-    public Event(String theme, String duration, String repeating, LocalDate start_date,String img_url) {
-        this.theme = theme;
-        this.duration = duration;
-        this.img_url=img_url;
-        this.repeating = repeating;
-        this.start_date = start_date;
-    }
-
-    public Event() {
-
-    }
-
-}
Index: c/main/java/com/example/moviezone/model/Film.java
===================================================================
--- src/main/java/com/example/moviezone/model/Film.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,88 +1,0 @@
-package com.example.moviezone.model;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import javax.persistence.*;
-
-
-import java.time.LocalDate;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "films")
-public class Film {
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_film;
-
-    String name;
-    Integer duration;
-    String actors;
-    String genre;
-    String age_category;
-    String url;
-    String director;
-    LocalDate start_date;
-    LocalDate end_date;
-
-    public Film(String name, Integer duration, String actors, String genre, String age_category, String url, String director, LocalDate start_date, LocalDate end_date) {
-        this.name = name;
-        this.duration = duration;
-        this.actors = actors;
-        this.genre = genre;
-        this.age_category = age_category;
-        this.url = url;
-        this.director = director;
-        this.start_date = start_date;
-        this.end_date = end_date;
-    }
-
-    public Film() {
-
-    }
-
-    public Integer getId_film() {
-        return id_film;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public Integer getDuration() {
-        return duration;
-    }
-
-    public String getActors() {
-        return actors;
-    }
-
-    public String getGenre() {
-        return genre;
-    }
-
-    public String getAge_category() {
-        return age_category;
-    }
-
-    public String getUrl() {
-        return url;
-    }
-
-    public String getDirector() {
-        return director;
-    }
-
-    public LocalDate getStart_date() {
-        return start_date;
-    }
-
-    public LocalDate getEnd_date() {
-        return end_date;
-    }
-}
Index: c/main/java/com/example/moviezone/model/Projection.java
===================================================================
--- src/main/java/com/example/moviezone/model/Projection.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,46 +1,0 @@
-package com.example.moviezone.model;
-
-
-import javax.persistence.*;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-
-@Getter
-@Setter
-@ToString
-@Entity
-@Table(name = "projections")
-public class Projection {
-    @Id
-    @Column(name = "id_projection", nullable = false)
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_projection;
-
-    LocalDateTime date_time_start;
-    String type_of_technology;
-    LocalDateTime date_time_end;
-    @ManyToOne
-    @JoinColumn(name = "id_film")
-    Film film;
-    @ManyToOne
-    @JoinColumn(name = "id_event")
-    Event event;
-    @ManyToOne
-    @JoinColumn(name = "id_discount")
-    Discount discount;
-
-    public Projection(LocalDateTime date_time_start, String type_of_technology, LocalDateTime date_time_end, Film film, Discount discount) {
-        this.date_time_start = date_time_start;
-        this.type_of_technology = type_of_technology;
-        this.date_time_end = date_time_end;
-        this.film = film;
-        this.discount = discount;
-    }
-
-    public Projection() {
-    }
-}
Index: c/main/java/com/example/moviezone/model/Projection_Room.java
===================================================================
--- src/main/java/com/example/moviezone/model/Projection_Room.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,25 +1,0 @@
-package com.example.moviezone.model;
-
-
-import javax.persistence.*;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-@Getter
-@Setter
-@ToString
-@Entity
-@Table(name = "projection_rooms")
-public class Projection_Room {
-    @Id
-    @Column(name = "id_room", nullable = false)
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_room;
-    Integer number_of_seats;
-    Integer projection_room_number;
-    @ManyToOne
-    @JoinColumn(name = "id_cinema")
-    Cinema cinema;
-
-}
Index: c/main/java/com/example/moviezone/model/Role.java
===================================================================
--- src/main/java/com/example/moviezone/model/Role.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,14 +1,0 @@
-package com.example.moviezone.model;
-
-
-import org.springframework.security.core.GrantedAuthority;
-
-public enum Role implements GrantedAuthority {
-
-    ROLE_USER, ROLE_ADMIN, ROLE_WORKER;
-
-    @Override
-    public String getAuthority() {
-        return name();
-    }
-}
Index: c/main/java/com/example/moviezone/model/Salary.java
===================================================================
--- src/main/java/com/example/moviezone/model/Salary.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,28 +1,0 @@
-package com.example.moviezone.model;
-
-import javax.persistence.*;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.time.LocalDate;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "salaries")
-public class Salary {
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_salary;
-
-    Integer sum;
-
-    LocalDate date_from;
-    LocalDate date_to;
-
-    @ManyToOne
-    @JoinColumn(name = "id_worker")
-    Worker worker;
-}
Index: c/main/java/com/example/moviezone/model/Seat.java
===================================================================
--- src/main/java/com/example/moviezone/model/Seat.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,26 +1,0 @@
-package com.example.moviezone.model;
-
-import javax.persistence.*;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "seats")
-public class Seat {
-    @Id
-    @Column(name = "id_seat", nullable = false)
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_seat;
-    Integer seat_number;
-    @ManyToOne
-    @JoinColumn(name = "id_room")
-    Projection_Room projection;
-    @ManyToOne
-    @JoinColumn(name = "id_category")
-    Category category;
-
-}
Index: c/main/java/com/example/moviezone/model/Ticket.java
===================================================================
--- src/main/java/com/example/moviezone/model/Ticket.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,67 +1,0 @@
-package com.example.moviezone.model;
-
-import javax.persistence.*;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.math.BigInteger;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "tickets")
-public class Ticket {
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    int id_ticket;
-
-    long price;
-    LocalDate date_reserved;
-
-    @ManyToOne
-    @JoinColumn(name = "id_customer")
-    Customer customer;
-    @ManyToOne
-    @JoinColumn(name = "id_projection")
-    Projection projection;
-    @ManyToOne
-    @JoinColumn(name = "id_discount")
-    Discount discount;
-    @ManyToOne
-    @JoinColumn(name = "id_seat")
-    Seat seat;
-
-    public Ticket(long price, Customer customer) {
-        this.price = price;
-        this.customer = customer;
-        this.date_reserved=LocalDate.now();
-    }
-
-    public Ticket(LocalDate date_reserved, Customer customer, Projection projection, Seat seat) {
-        this.date_reserved = date_reserved;
-        this.customer = customer;
-        this.projection = projection;
-        this.seat = seat;
-    }
-
-    public Ticket( LocalDate date_reserved, Customer customer, Projection projection, Discount discount, Seat seat) {
-        this.date_reserved = date_reserved;
-        this.customer = customer;
-        this.projection = projection;
-        this.discount = discount;
-        this.seat = seat;
-    }
-
-    public Ticket() {
-
-    }
-
-    public void setPrice(long price) {
-        this.price = price;
-    }
-}
Index: c/main/java/com/example/moviezone/model/User.java
===================================================================
--- src/main/java/com/example/moviezone/model/User.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,87 +1,0 @@
-package com.example.moviezone.model;
-
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-import org.springframework.security.core.userdetails.UserDetails;
-
-import javax.management.relation.Role;
-import javax.persistence.*;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Collection;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "users")
-@Inheritance(strategy = InheritanceType.JOINED)
-public class User implements UserDetails {
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_user;
-    String password;
-    String first_name;
-    String last_name;
-    String address;
-    String contact_number;
-    String username;
-    LocalDate date_created;
-
-
-    public User(Integer id_user, String password, String first_name, String last_name, String address, String contact_number, String username, LocalDate date_created) {
-        this.id_user = id_user;
-        this.password = password;
-        this.first_name = first_name;
-        this.last_name = last_name;
-        this.address = address;
-        this.contact_number = contact_number;
-        this.username = username;
-        this.date_created = date_created;
-    }
-
-    public User(String password, String first_name, String last_name, String address, String contact_number, String username) {
-        this.password = password;
-        this.first_name = first_name;
-        this.last_name = last_name;
-        this.address = address;
-        this.contact_number = contact_number;
-        this.username = username;
-        this.date_created=LocalDate.now();
-    }
-
-    public User() {
-
-    }
-
-    @Override
-    public Collection<? extends GrantedAuthority> getAuthorities() {
-        return null;
-    }
-
-
-    @Override
-    public boolean isAccountNonExpired() {
-        return true;
-    }
-
-    @Override
-    public boolean isAccountNonLocked() {
-        return true;
-    }
-
-    @Override
-    public boolean isCredentialsNonExpired() {
-        return true;
-    }
-
-    @Override
-    public boolean isEnabled() {
-        return true;
-    }
-
-}
Index: c/main/java/com/example/moviezone/model/Work_Hours_Weekly.java
===================================================================
--- src/main/java/com/example/moviezone/model/Work_Hours_Weekly.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,34 +1,0 @@
-package com.example.moviezone.model;
-
-import javax.persistence.*;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-
-import java.time.LocalDateTime;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "work_hours_weekly")
-public class Work_Hours_Weekly {
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    Integer id_work_hours;
-
-    Integer week_number;
-
-    String year_num;
-
-    LocalDateTime hours_from;
-
-    LocalDateTime hours_to;
-
-    Boolean check_in;
-
-    @ManyToOne
-    @JoinColumn(name = "id_worker")
-    Worker worker;
-}
Index: c/main/java/com/example/moviezone/model/Worker.java
===================================================================
--- src/main/java/com/example/moviezone/model/Worker.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,68 +1,0 @@
-package com.example.moviezone.model;
-
-import javax.persistence.*;
-import lombok.Getter;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-
-import java.time.LocalDate;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Objects;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@Table(name = "workers")
-@PrimaryKeyJoinColumn(name = "id_worker")
-public class Worker extends User {
-
-    String position;
-
-    String work_hours_from;
-    String work_hours_to;
-
-    @ManyToOne
-    @JoinColumn(name = "id_cinema")
-    Cinema cinema;
-
-    public Worker(String password, String first_name, String last_name, String address, String contact_number, String username) {
-        super(password, first_name, last_name, address, contact_number, username);
-    }
-    public Worker(String password, String first_name, String last_name, String address, String contact_number, String username,String position,String work_hours_from,String work_hours_to,Cinema cinema) {
-        super(password, first_name, last_name, address, contact_number, username);
-        this.position=position;
-        this.work_hours_from=work_hours_from;
-        this.work_hours_to=work_hours_to;
-        this.cinema=cinema;
-    }
-
-    @Override
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
-        Worker worker = (Worker) o;
-        return id_user!=null && Objects.equals(id_user, worker.id_user);
-    }
-
-    @Override
-    public int hashCode() {
-        return Objects.hash();
-    }
-
-    public Worker() {
-
-    }
-
-    @Override
-    public Collection<? extends GrantedAuthority> getAuthorities() {
-        if (position.equalsIgnoreCase("admin"))
-            return Collections.singletonList(Role.ROLE_ADMIN);
-        else{
-            return Collections.singletonList(Role.ROLE_WORKER);
-        }
-    }
-
-}
Index: c/main/java/com/example/moviezone/model/enums/GenreEnum.java
===================================================================
--- src/main/java/com/example/moviezone/model/enums/GenreEnum.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,11 +1,0 @@
-package com.example.moviezone.model.enums;
-
-public enum GenreEnum {
-    Animation,
-    Adventure,
-    Comedy,
-    Fantasy,
-    Crime,
-    Drama,
-    Thriller
-}
Index: c/main/java/com/example/moviezone/model/exceptions/InvalidUsernameOrPasswordException.java
===================================================================
--- src/main/java/com/example/moviezone/model/exceptions/InvalidUsernameOrPasswordException.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,4 +1,0 @@
-package com.example.moviezone.model.exceptions;
-
-public class InvalidUsernameOrPasswordException extends RuntimeException {
-}
Index: c/main/java/com/example/moviezone/model/exceptions/PasswordsDoNotMatchException.java
===================================================================
--- src/main/java/com/example/moviezone/model/exceptions/PasswordsDoNotMatchException.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,8 +1,0 @@
-package com.example.moviezone.model.exceptions;
-
- public class PasswordsDoNotMatchException extends RuntimeException {
-
-     public PasswordsDoNotMatchException() {
-         super("Passwords do not match exception.");
-     }
- }
Index: c/main/java/com/example/moviezone/model/exceptions/UserNotFoundException.java
===================================================================
--- src/main/java/com/example/moviezone/model/exceptions/UserNotFoundException.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,8 +1,0 @@
-package com.example.moviezone.model.exceptions;
-
-
-public class UserNotFoundException extends RuntimeException{
-    public UserNotFoundException() {
-        super("user not found");
-    }
-}
Index: c/main/java/com/example/moviezone/model/manytomany/CinemaOrganizesEvent.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/CinemaOrganizesEvent.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,35 +1,0 @@
-package com.example.moviezone.model.manytomany;
-import lombok.Getter;
-import lombok.RequiredArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-import org.springframework.security.core.userdetails.UserDetails;
-
-import javax.management.relation.Role;
-import javax.persistence.*;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Collection;
-
-
-@Entity
-@Getter
-@Setter
-@ToString
-@RequiredArgsConstructor
-@Table(name = "`cinema_organizes_event`")
-@IdClass(CinemaOrganizesEventId.class)
-public class CinemaOrganizesEvent {
-    @Id
-    @Column(name = "id_cinema")
-    Integer id_cinema;
-    @Column(name = "id_event")
-    @Id
-    Integer id_event;
-
-    public CinemaOrganizesEvent(Integer id_cinema, Integer id_event) {
-        this.id_cinema=id_cinema;
-        this.id_event=id_event;
-    }
-}
Index: c/main/java/com/example/moviezone/model/manytomany/CinemaOrganizesEventId.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/CinemaOrganizesEventId.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,11 +1,0 @@
-package com.example.moviezone.model.manytomany;
-
-import lombok.Data;
-
-import java.io.Serializable;
-
-@Data
-public class CinemaOrganizesEventId implements Serializable {
-    Integer id_cinema;
-    Integer id_event;
-}
Index: c/main/java/com/example/moviezone/model/manytomany/CinemaPlaysFilm.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/CinemaPlaysFilm.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,40 +1,0 @@
-package com.example.moviezone.model.manytomany;
-
-import lombok.Getter;
-import lombok.RequiredArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-import org.springframework.security.core.userdetails.UserDetails;
-
-import javax.management.relation.Role;
-import javax.persistence.*;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Collection;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@RequiredArgsConstructor
-
-@Table(name = "`cinema_plays_film`")
-
-@IdClass(CinemaPlaysFilmId.class)
-public class CinemaPlaysFilm {
-    @Id
-    @Column(name = "id_cinema")
-    Integer id_cinema;
-
-
-
-    @Id
-    @Column(name = "id_film")
-    Integer id_film;
-
-    public CinemaPlaysFilm(Integer id_cinema,Integer id_film) {
-        this.id_cinema = id_cinema;
-        this.id_film=id_film;
-    }
-}
Index: c/main/java/com/example/moviezone/model/manytomany/CinemaPlaysFilmId.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/CinemaPlaysFilmId.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,11 +1,0 @@
-package com.example.moviezone.model.manytomany;
-
-import lombok.Data;
-
-import java.io.Serializable;
-
-@Data
-public class CinemaPlaysFilmId implements Serializable {
-    Integer id_cinema;
-    Integer id_film;
-}
Index: c/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEvent.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEvent.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,36 +1,0 @@
-package com.example.moviezone.model.manytomany;
-
-import lombok.Getter;
-import lombok.RequiredArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-import org.springframework.security.core.userdetails.UserDetails;
-
-import javax.management.relation.Role;
-import javax.persistence.*;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Collection;
-
-
-@Entity
-@Getter
-@Setter
-@ToString
-@RequiredArgsConstructor
-@Table(name = "`customer_is_interested_in_event`")
-@IdClass(CustomerIsInterestedInEventId.class)
-public class CustomerIsInterestedInEvent {
-    @Id
-    @Column(name = "id_customer")
-    Integer idcustomer;
-    @Column(name = "id_event")
-    @Id
-    Integer idevent;
-
-    public CustomerIsInterestedInEvent(Integer id_customer, Integer id_event) {
-        this.idcustomer = id_customer;
-        this.idevent = id_event;
-    }
-}
Index: c/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEventId.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEventId.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,12 +1,0 @@
-package com.example.moviezone.model.manytomany;
-
-import lombok.Data;
-
-import java.io.Serializable;
-
-@Data
-public class CustomerIsInterestedInEventId implements Serializable {
-    Integer idcustomer;
-    Integer idevent;
-
-}
Index: c/main/java/com/example/moviezone/model/manytomany/CustomerRatesFilm.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/CustomerRatesFilm.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,39 +1,0 @@
-package com.example.moviezone.model.manytomany;
-import lombok.Getter;
-import lombok.RequiredArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-import org.springframework.security.core.userdetails.UserDetails;
-
-import javax.management.relation.Role;
-import javax.persistence.*;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Collection;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@RequiredArgsConstructor
-@Table(name = "`customer_rates_film`")
-@IdClass(CustomerRatesFilmId.class)
-public class CustomerRatesFilm {
-
-    @Id
-    @Column(name ="id_customer")
-    Integer id_customer;
-
-    @Id
-    @Column(name ="id_film")
-    Integer id_film;
-
-    double rating;
-
-    public CustomerRatesFilm(Integer id_customer, Integer id_film, double rating) {
-        this.id_customer = id_customer;
-        this.id_film = id_film;
-        this.rating = rating;
-    }
-}
Index: c/main/java/com/example/moviezone/model/manytomany/CustomerRatesFilmId.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/CustomerRatesFilmId.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,11 +1,0 @@
-package com.example.moviezone.model.manytomany;
-
-import lombok.Data;
-
-import java.io.Serializable;
-
-@Data
-public class CustomerRatesFilmId implements Serializable {
-    Integer id_customer;
-    Integer id_film;
-}
Index: c/main/java/com/example/moviezone/model/manytomany/ProjectionIsPlayedInRoom.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/ProjectionIsPlayedInRoom.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,36 +1,0 @@
-package com.example.moviezone.model.manytomany;
-
-import lombok.Getter;
-import lombok.RequiredArgsConstructor;
-import lombok.Setter;
-import lombok.ToString;
-import org.springframework.security.core.GrantedAuthority;
-import org.springframework.security.core.userdetails.UserDetails;
-
-import javax.management.relation.Role;
-import javax.persistence.*;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Collection;
-
-@Entity
-@Getter
-@Setter
-@ToString
-@RequiredArgsConstructor
-@Table(name = "projection_is_played_in_room")
-@IdClass(ProjectionIsPlayedInRoomId.class)
-public class ProjectionIsPlayedInRoom {
-    @Id
-    @Column(name ="id_projection")
-    Integer idprojection;
-
-    @Id
-    @Column(name ="id_room")
-    Integer idroom;
-
-    public ProjectionIsPlayedInRoom(Integer idprojection, Integer idroom) {
-        this.idprojection = idprojection;
-        this.idroom = idroom;
-    }
-}
Index: c/main/java/com/example/moviezone/model/manytomany/ProjectionIsPlayedInRoomId.java
===================================================================
--- src/main/java/com/example/moviezone/model/manytomany/ProjectionIsPlayedInRoomId.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,11 +1,0 @@
-package com.example.moviezone.model.manytomany;
-
-import lombok.Data;
-
-import java.io.Serializable;
-
-@Data
-public class ProjectionIsPlayedInRoomId implements Serializable {
-    Integer idprojection;
-    Integer idroom;
-}
Index: c/main/java/com/example/moviezone/model/procedures/FilmsReturnTable.java
===================================================================
--- src/main/java/com/example/moviezone/model/procedures/FilmsReturnTable.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,32 +1,0 @@
-package com.example.moviezone.model.procedures;
-
-import lombok.Data;
-
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import java.time.LocalDate;
-@Data
-public class FilmsReturnTable {
-    int id_film;
-    LocalDate start_date;
-    String name;
-
-    public FilmsReturnTable(Integer id_film, LocalDate start_date, String name) {
-        this.id_film = id_film;
-        this.start_date = start_date;
-        this.name = name;
-    }
-
-    public int getId_film() {
-        return id_film;
-    }
-
-    public LocalDate getStart_date() {
-        return start_date;
-    }
-
-    public String getName() {
-        return name;
-    }
-}
Index: c/main/java/com/example/moviezone/model/procedures/TicketsCancelClass.java
===================================================================
--- src/main/java/com/example/moviezone/model/procedures/TicketsCancelClass.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,16 +1,0 @@
-package com.example.moviezone.model.procedures;
-
-import com.example.moviezone.model.Ticket;
-
-public class TicketsCancelClass {
-    public Ticket ticket;
-    public boolean canCancel;
-
-    public TicketsCancelClass(Ticket ticket, boolean canCancel) {
-        this.ticket = ticket;
-        this.canCancel = canCancel;
-    }
-
-    public TicketsCancelClass() {
-    }
-}
Index: c/main/java/com/example/moviezone/model/views/CustomerCinemaReport.java
===================================================================
--- src/main/java/com/example/moviezone/model/views/CustomerCinemaReport.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,2 +1,0 @@
-package com.example.moviezone.model.views;public class CustomerCinemaReport {
-}
Index: c/main/java/com/example/moviezone/model/views/CustomerCinemaReportId.java
===================================================================
--- src/main/java/com/example/moviezone/model/views/CustomerCinemaReportId.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,2 +1,0 @@
-package com.example.moviezone.model.views;public class CustomerCinemaReportId {
-}
Index: c/main/java/com/example/moviezone/model/views/FilmReport.java
===================================================================
--- src/main/java/com/example/moviezone/model/views/FilmReport.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,2 +1,0 @@
-package com.example.moviezone.model.views;public class FilmReport {
-}
Index: c/main/java/com/example/moviezone/repository/CategoryRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/CategoryRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,12 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Category;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-import java.util.Optional;
-
-@Repository
-public interface CategoryRepository extends JpaRepository<Category,Integer>{
-    Optional<Category> getByIdcategory(int id);
-}
Index: c/main/java/com/example/moviezone/repository/CinemaOrganizesEventRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/CinemaOrganizesEventRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.manytomany.CinemaOrganizesEvent;
-import com.example.moviezone.model.manytomany.CinemaOrganizesEventId;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-@Repository
-public interface CinemaOrganizesEventRepository extends JpaRepository<CinemaOrganizesEvent, CinemaOrganizesEventId> {
-}
Index: c/main/java/com/example/moviezone/repository/CinemaPlaysFilmRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/CinemaPlaysFilmRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.manytomany.CinemaPlaysFilm;
-import com.example.moviezone.model.manytomany.CinemaPlaysFilmId;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-@Repository
-public interface CinemaPlaysFilmRepository extends JpaRepository<CinemaPlaysFilm, CinemaPlaysFilmId> {
-}
Index: c/main/java/com/example/moviezone/repository/CinemaRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/CinemaRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Cinema;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-
-@Repository
-public interface CinemaRepository extends JpaRepository<Cinema,Integer> {
-}
Index: c/main/java/com/example/moviezone/repository/CustomerCinemaReportRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/CustomerCinemaReportRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,2 +1,0 @@
-package com.example.moviezone.repository;public interface CustomerCinemaReportRepository {
-}
Index: c/main/java/com/example/moviezone/repository/CustomerIsInterestedInEventRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/CustomerIsInterestedInEventRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,14 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.manytomany.CustomerIsInterestedInEvent;
-import com.example.moviezone.model.manytomany.CustomerIsInterestedInEventId;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-@Repository
-public interface CustomerIsInterestedInEventRepository extends JpaRepository<CustomerIsInterestedInEvent, CustomerIsInterestedInEventId> {
-    CustomerIsInterestedInEvent save(CustomerIsInterestedInEvent customerIsInterestedInEvent);
-    void delete(CustomerIsInterestedInEvent customerIsInterestedInEvent);
-    CustomerIsInterestedInEvent findFirstByIdeventAndAndIdcustomer(int id_event,int id_customer);
-
-}
Index: c/main/java/com/example/moviezone/repository/CustomerRatesFilmRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/CustomerRatesFilmRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,15 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.manytomany.CustomerRatesFilm;
-import com.example.moviezone.model.manytomany.CustomerRatesFilmId;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.query.Procedure;
-import org.springframework.data.repository.query.Param;
-import org.springframework.stereotype.Repository;
-
-@Repository
-public interface CustomerRatesFilmRepository extends JpaRepository<CustomerRatesFilm, CustomerRatesFilmId> {
-@Procedure("project.avg_rating1")
-    double avg_rating(int id);
-    CustomerRatesFilm save(CustomerRatesFilm customerRatesFilm);
-}
Index: c/main/java/com/example/moviezone/repository/CustomerRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/CustomerRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Customer;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-@Repository
-public interface CustomerRepository extends JpaRepository<Customer,Integer> {
-    Customer getByUsername(String username);
-}
Index: c/main/java/com/example/moviezone/repository/DiscountRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/DiscountRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,15 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Discount;
-import com.example.moviezone.model.Projection;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.query.Procedure;
-
-import javax.transaction.Transactional;
-import java.util.List;
-
-@Transactional
-public interface DiscountRepository extends JpaRepository<Discount,Integer> {
-    @Procedure("project.getValidDiscounts")
-    List<Discount> getValidDiscounts();
-}
Index: c/main/java/com/example/moviezone/repository/EventRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/EventRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,18 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Event;
-import com.example.moviezone.model.Film;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.query.Procedure;
-
-import javax.transaction.Transactional;
-import java.util.List;
-@Transactional
-public interface EventRepository extends JpaRepository<Event,Integer> {
-    @Procedure("project.getEventsFromCinema")
-    List<Event> getFilmsFromCinema(int id);
-    @Procedure("project.getEventsFromNow")
-    List<Event> getFilmsFromCinemaNow();
-    @Procedure("project.getEventsForCustomer")
-    List<Event> getEventsForCustomer(int id);
-}
Index: c/main/java/com/example/moviezone/repository/FilmReportRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/FilmReportRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,2 +1,0 @@
-package com.example.moviezone.repository;public interface FilmReportRepository {
-}
Index: c/main/java/com/example/moviezone/repository/FilmRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/FilmRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,23 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Film;
-import com.example.moviezone.model.procedures.FilmsReturnTable;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.query.Procedure;
-import org.springframework.data.repository.query.Param;
-import org.springframework.jdbc.core.JdbcTemplate;
-
-import javax.swing.tree.RowMapper;
-import javax.transaction.Transactional;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.List;
-@Transactional
-public interface FilmRepository extends JpaRepository<Film,Integer> {
-    @Procedure("project.getFilmsFromCinema1")
-    List<Film> getFilmsFromCinema(int id);
-    @Procedure("project.getFilmsFromCinemaNow")
-    List<Film> getFilmsFromCinemaNow(int id);
-    @Procedure("project.getFilmsNow")
-    List<Film> getFilmsNow();
-}
Index: c/main/java/com/example/moviezone/repository/MonthlyCinemaReportRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/MonthlyCinemaReportRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,2 +1,0 @@
-package com.example.moviezone.repository;public class MonthlyCinemaReportRepository {
-}
Index: c/main/java/com/example/moviezone/repository/ProjectionIsPlayedInRoomRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/ProjectionIsPlayedInRoomRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,14 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
-import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoomId;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.Query;
-import org.springframework.data.repository.query.Param;
-
-import java.util.List;
-
-public interface ProjectionIsPlayedInRoomRepository extends JpaRepository<ProjectionIsPlayedInRoom, ProjectionIsPlayedInRoomId> {
-    @Query("SELECT pir FROM ProjectionIsPlayedInRoom pir WHERE pir.idprojection = :id_projection")
-    List<ProjectionIsPlayedInRoom> findAllByProjectionId(@Param("id_projection") Integer id_projection);
-}
Index: c/main/java/com/example/moviezone/repository/ProjectionRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/ProjectionRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,16 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Projection;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.query.Procedure;
-
-import javax.transaction.Transactional;
-import java.time.LocalDate;
-import java.util.List;
-@Transactional
-public interface ProjectionRepository extends JpaRepository<Projection,Integer> {
-    @Procedure("project.getProjectionsForFilms")
-    List<Projection> getProjectionsForFilms(int id);
-    @Procedure("project.getProjectionsNow")
-    List<Projection> getProjectionsNow();
-}
Index: c/main/java/com/example/moviezone/repository/Projection_RoomRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/Projection_RoomRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,13 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Projection;
-import com.example.moviezone.model.Projection_Room;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.query.Procedure;
-
-import java.util.List;
-
-public interface Projection_RoomRepository extends JpaRepository<Projection_Room,Integer> {
-    @Procedure("project.getRoomsForProjection")
-    List<Projection_Room> getRoomsForProjection(int id);
-}
Index: c/main/java/com/example/moviezone/repository/SalaryRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/SalaryRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,7 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Salary;
-import org.springframework.data.jpa.repository.JpaRepository;
-
-public interface SalaryRepository extends JpaRepository<Salary,Integer> {
-}
Index: c/main/java/com/example/moviezone/repository/SeatRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/SeatRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,16 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Category;
-import com.example.moviezone.model.Projection;
-import com.example.moviezone.model.Projection_Room;
-import com.example.moviezone.model.Seat;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-import java.util.List;
-
-@Repository
-public interface SeatRepository extends JpaRepository<Seat,Integer> {
-    List<Seat> findAllByProjection(Projection_Room projection);
-    List<Seat> findAllByCategoryAndProjection(Category category, Projection_Room projectionRoom);
-}
Index: c/main/java/com/example/moviezone/repository/TicketRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/TicketRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,15 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Customer;
-import com.example.moviezone.model.Ticket;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.query.Procedure;
-import org.springframework.stereotype.Repository;
-
-import java.util.List;
-@Repository
-public interface TicketRepository extends JpaRepository<Ticket,Integer> {
-    List<Ticket> findAllByCustomer(Customer customer);
-    @Procedure("project.getPriceForTicket")
-    Integer getPriceForTicket(int id);
-}
Index: c/main/java/com/example/moviezone/repository/UserRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/UserRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,13 +1,0 @@
-package com.example.moviezone.repository;
-
-
-import com.example.moviezone.model.User;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-import java.util.List;
-@Repository
-public interface UserRepository extends JpaRepository<User,Integer> {
-    User findByUsername(String username);
-    List<User> findAllByUsernameAndPassword(String username, String password);
-}
Index: c/main/java/com/example/moviezone/repository/Work_Hours_WeeklyRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/Work_Hours_WeeklyRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.repository;
-
-
-import com.example.moviezone.model.Work_Hours_Weekly;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-@Repository
-public interface Work_Hours_WeeklyRepository extends JpaRepository<Work_Hours_Weekly,Integer> {
-}
Index: c/main/java/com/example/moviezone/repository/WorkerRepository.java
===================================================================
--- src/main/java/com/example/moviezone/repository/WorkerRepository.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.repository;
-
-import com.example.moviezone.model.Worker;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.stereotype.Repository;
-
-@Repository
-public interface WorkerRepository extends JpaRepository<Worker,Integer> {
-    Worker getByUsername(String username);
-}
Index: c/main/java/com/example/moviezone/service/CategoryService.java
===================================================================
--- src/main/java/com/example/moviezone/service/CategoryService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,11 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Category;
-
-import java.util.List;
-import java.util.Optional;
-
-public interface CategoryService {
-    List<Category> findAllCategories();
-    Optional<Category> getCategoryById(int id);
-}
Index: c/main/java/com/example/moviezone/service/CinemaOrganizesEventService.java
===================================================================
--- src/main/java/com/example/moviezone/service/CinemaOrganizesEventService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,7 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.manytomany.CinemaOrganizesEvent;
-
-public interface CinemaOrganizesEventService {
-    CinemaOrganizesEvent save(Integer id_cinema, Integer id_event);
-}
Index: c/main/java/com/example/moviezone/service/CinemaPlaysFilmService.java
===================================================================
--- src/main/java/com/example/moviezone/service/CinemaPlaysFilmService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,7 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.manytomany.CinemaPlaysFilm;
-
-public interface CinemaPlaysFilmService {
-    CinemaPlaysFilm save(Integer id_cinema,Integer id_film);
-}
Index: c/main/java/com/example/moviezone/service/CinemaService.java
===================================================================
--- src/main/java/com/example/moviezone/service/CinemaService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Cinema;
-
-import java.util.List;
-
-public interface CinemaService {
-    List<Cinema> findAllCinemas();
-    Cinema findCinemaById(Integer id_cinema);
-}
Index: c/main/java/com/example/moviezone/service/CustomerIsInterestedInEventService.java
===================================================================
--- src/main/java/com/example/moviezone/service/CustomerIsInterestedInEventService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,13 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Customer;
-import com.example.moviezone.model.Event;
-import com.example.moviezone.model.manytomany.CustomerIsInterestedInEvent;
-
-import javax.persistence.criteria.CriteriaBuilder;
-
-public interface CustomerIsInterestedInEventService {
- CustomerIsInterestedInEvent add(Integer id_customer,Integer id_event);
- void delete(Customer customer, Event event);
- CustomerIsInterestedInEvent findByCustomerAndEvent(Customer customer, Event event);
-}
Index: c/main/java/com/example/moviezone/service/CustomerRatesFilmService.java
===================================================================
--- src/main/java/com/example/moviezone/service/CustomerRatesFilmService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Customer;
-import com.example.moviezone.model.manytomany.CustomerRatesFilm;
-
-public interface CustomerRatesFilmService {
-    double avg_rating(int id);
-    CustomerRatesFilm addRating(Integer id_customer, Integer id_film, double rating);
-
-}
Index: c/main/java/com/example/moviezone/service/CustomerService.java
===================================================================
--- src/main/java/com/example/moviezone/service/CustomerService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,13 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Customer;
-import org.springframework.stereotype.Repository;
-
-import java.util.List;
-import java.util.Optional;
-
-public interface CustomerService {
-    List<Customer> findAllCustomers();
-    Optional<Customer> getCustomerById(int id);
-    Customer findByUsername(String username);
-}
Index: c/main/java/com/example/moviezone/service/DiscountService.java
===================================================================
--- src/main/java/com/example/moviezone/service/DiscountService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,13 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Discount;
-import org.springframework.stereotype.Repository;
-
-import java.time.LocalDate;
-import java.util.List;
-
-
-public interface DiscountService {
-    Discount save(String code, String type, LocalDate validity, Integer percent);
-    List<Discount> getValidDiscounts();
-}
Index: c/main/java/com/example/moviezone/service/EventService.java
===================================================================
--- src/main/java/com/example/moviezone/service/EventService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,17 +1,0 @@
-package com.example.moviezone.service;
-
-import ch.qos.logback.core.encoder.EchoEncoder;
-import com.example.moviezone.model.Event;
-
-import java.time.LocalDate;
-import java.util.List;
-import java.util.Optional;
-
-public interface EventService {
-    List<Event> findAllEvents();
-    Event save(LocalDate start_date,String theme,String duration,String repeating,String url);
-    List<Event> getEventsNow();
-    List<Event> getEventsFromCinema(int id);
-    Optional<Event> getEventById(Long id);
-    List<Event> getEventsForCustomer(int id);
-}
Index: c/main/java/com/example/moviezone/service/FilmService.java
===================================================================
--- src/main/java/com/example/moviezone/service/FilmService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,18 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Film;
-import com.example.moviezone.model.procedures.FilmsReturnTable;
-
-import java.time.LocalDate;
-import java.util.List;
-import java.util.Optional;
-
-public interface FilmService {
-    List<Film> findAllFilms();
-    Film save(String name, Integer duration, String actors, String genre,
-              String age_category, String url, String director, LocalDate start_date,LocalDate end_date);
-    Optional<Film> getFilmById(Long id);
-    List<Film> getFilmsFromCinema(int id);
-    List<Film> getFilmsFromCinemaNow(int id);
-    List<Film> getFilmsNow();
-}
Index: c/main/java/com/example/moviezone/service/Impl/CategoryServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/CategoryServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,28 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Category;
-import com.example.moviezone.repository.CategoryRepository;
-import com.example.moviezone.service.CategoryService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-import java.util.Optional;
-
-@Service
-public class CategoryServiceImpl implements CategoryService {
-    private final CategoryRepository categoryRepository;
-
-    public CategoryServiceImpl(CategoryRepository categoryRepository) {
-        this.categoryRepository = categoryRepository;
-    }
-
-    @Override
-    public List<Category> findAllCategories() {
-        return categoryRepository.findAll();
-    }
-
-    @Override
-    public Optional<Category> getCategoryById(int id) {
-        return categoryRepository.getByIdcategory(id);
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/CinemaOrganizesEventServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/CinemaOrganizesEventServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,20 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.manytomany.CinemaOrganizesEvent;
-import com.example.moviezone.repository.CinemaOrganizesEventRepository;
-import com.example.moviezone.service.CinemaOrganizesEventService;
-import org.springframework.stereotype.Service;
-
-@Service
-public class CinemaOrganizesEventServiceImpl implements CinemaOrganizesEventService {
-    private final CinemaOrganizesEventRepository cinemaOrganizesEventRepository;
-
-    public CinemaOrganizesEventServiceImpl(CinemaOrganizesEventRepository cinemaOrganizesEventRepository) {
-        this.cinemaOrganizesEventRepository = cinemaOrganizesEventRepository;
-    }
-
-    @Override
-    public CinemaOrganizesEvent save(Integer id_cinema, Integer id_event) {
-        return cinemaOrganizesEventRepository.save(new CinemaOrganizesEvent(id_cinema,id_event));
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/CinemaPlaysFilmServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/CinemaPlaysFilmServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,20 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.manytomany.CinemaPlaysFilm;
-import com.example.moviezone.repository.CinemaPlaysFilmRepository;
-import com.example.moviezone.service.CinemaPlaysFilmService;
-import org.springframework.stereotype.Service;
-
-@Service
-public class CinemaPlaysFilmServiceImpl implements CinemaPlaysFilmService {
-    private  final CinemaPlaysFilmRepository cinemaPlaysFilmRepository;
-
-    public CinemaPlaysFilmServiceImpl(CinemaPlaysFilmRepository cinemaPlaysFilmRepository) {
-        this.cinemaPlaysFilmRepository = cinemaPlaysFilmRepository;
-    }
-
-    @Override
-    public CinemaPlaysFilm save(Integer id_cinema, Integer id_film) {
-        return cinemaPlaysFilmRepository.save(new CinemaPlaysFilm(id_cinema,id_film));
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/CinemaServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/CinemaServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,27 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Cinema;
-import com.example.moviezone.repository.CinemaRepository;
-import com.example.moviezone.service.CinemaService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-@Service
-public class CinemaServiceImpl implements CinemaService {
-    private final CinemaRepository cinemaRepository;
-
-    public CinemaServiceImpl(CinemaRepository cinemaRepository) {
-        this.cinemaRepository = cinemaRepository;
-    }
-
-    @Override
-    public List<Cinema> findAllCinemas() {
-        return cinemaRepository.findAll();
-    }
-
-    @Override
-    public Cinema findCinemaById(Integer id_cinema) {
-        return cinemaRepository.findById(id_cinema).orElseThrow(RuntimeException::new);
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/CustomerIsInterestedInEventImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/CustomerIsInterestedInEventImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,34 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Customer;
-import com.example.moviezone.model.Event;
-import com.example.moviezone.model.manytomany.CustomerIsInterestedInEvent;
-import com.example.moviezone.repository.CustomerIsInterestedInEventRepository;
-import com.example.moviezone.service.CustomerIsInterestedInEventService;
-import org.springframework.stereotype.Service;
-
-@Service
-public class CustomerIsInterestedInEventImpl implements CustomerIsInterestedInEventService {
-    private final CustomerIsInterestedInEventRepository customerIsInterestedInEventRepository;
-
-    public CustomerIsInterestedInEventImpl(CustomerIsInterestedInEventRepository customerIsInterestedInEventRepository) {
-        this.customerIsInterestedInEventRepository = customerIsInterestedInEventRepository;
-    }
-
-    @Override
-    public CustomerIsInterestedInEvent add(Integer id_customer, Integer id_event) {
-        CustomerIsInterestedInEvent customerIsInterestedInEvent=new CustomerIsInterestedInEvent(id_customer,id_event);
-        return customerIsInterestedInEventRepository.save(customerIsInterestedInEvent);
-    }
-
-    @Override
-    public void delete(Customer customer, Event event) {
-        CustomerIsInterestedInEvent customerIsInterestedInEvent=findByCustomerAndEvent(customer,event);
-        customerIsInterestedInEventRepository.delete(customerIsInterestedInEvent);
-    }
-
-    @Override
-    public CustomerIsInterestedInEvent findByCustomerAndEvent(Customer customer, Event event) {
-        return customerIsInterestedInEventRepository.findFirstByIdeventAndAndIdcustomer(event.getId_event(),customer.getId_user());
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/CustomerRatesFilmImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/CustomerRatesFilmImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,26 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.manytomany.CustomerRatesFilm;
-import com.example.moviezone.repository.CustomerRatesFilmRepository;
-import com.example.moviezone.service.CustomerRatesFilmService;
-import org.springframework.stereotype.Service;
-
-@Service
-public class CustomerRatesFilmImpl implements CustomerRatesFilmService {
-    private final CustomerRatesFilmRepository customerRatesFilmRepository;
-
-    public CustomerRatesFilmImpl(CustomerRatesFilmRepository customerRatesFilmRepository) {
-        this.customerRatesFilmRepository = customerRatesFilmRepository;
-    }
-
-    @Override
-    public double avg_rating(int id) {
-        return customerRatesFilmRepository.avg_rating(id);
-    }
-
-    @Override
-    public CustomerRatesFilm addRating(Integer id_customer, Integer id_film, double rating) {
-        CustomerRatesFilm customerRatesFilm=new CustomerRatesFilm(id_customer,id_film,rating);
-        return customerRatesFilmRepository.save(customerRatesFilm);
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/CustomerServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/CustomerServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,33 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Customer;
-import com.example.moviezone.repository.CustomerRepository;
-import com.example.moviezone.service.CustomerService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-import java.util.Optional;
-
-@Service
-public class CustomerServiceImpl implements CustomerService {
-    private final CustomerRepository customerRepository;
-
-    public CustomerServiceImpl(CustomerRepository customerRepository) {
-        this.customerRepository = customerRepository;
-    }
-
-    @Override
-    public List<Customer> findAllCustomers() {
-        return customerRepository.findAll();
-    }
-
-    @Override
-    public Optional<Customer> getCustomerById(int id) {
-        return customerRepository.findById(id);
-    }
-
-    @Override
-    public Customer findByUsername(String username) {
-        return customerRepository.getByUsername(username);
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/DiscountServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/DiscountServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,28 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Discount;
-import com.example.moviezone.repository.DiscountRepository;
-import com.example.moviezone.service.DiscountService;
-import org.springframework.stereotype.Service;
-
-import java.time.LocalDate;
-import java.util.List;
-
-@Service
-public class DiscountServiceImpl implements DiscountService {
-    private final DiscountRepository discountRepository;
-
-    public DiscountServiceImpl(DiscountRepository discountRepository) {
-        this.discountRepository = discountRepository;
-    }
-
-    @Override
-    public Discount save(String code, String type, LocalDate validity, Integer percent) {
-        return discountRepository.save(new Discount(validity,code,type,percent));
-    }
-
-    @Override
-    public List<Discount> getValidDiscounts() {
-        return discountRepository.getValidDiscounts();
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/EventServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/EventServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,50 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Event;
-import com.example.moviezone.repository.EventRepository;
-import com.example.moviezone.service.EventService;
-import org.springframework.stereotype.Service;
-
-import java.time.LocalDate;
-import java.util.Collections;
-import java.util.List;
-import java.util.Optional;
-
-@Service
-public class EventServiceImpl implements EventService {
-    private final EventRepository eventRepository;
-
-    public EventServiceImpl(EventRepository eventRepository) {
-        this.eventRepository = eventRepository;
-    }
-
-    @Override
-    public List<Event> findAllEvents() {
-        return eventRepository.findAll();
-    }
-
-    @Override
-    public Event save(LocalDate start_date, String theme, String duration, String repeating,String img_url) {
-        return eventRepository.save(new Event(theme,duration,repeating,start_date,img_url));
-    }
-
-    @Override
-    public List<Event> getEventsNow() {
-        return eventRepository.getFilmsFromCinemaNow();
-    }
-
-    @Override
-    public List<Event> getEventsFromCinema(int id) {
-        return eventRepository.getFilmsFromCinema(id);
-    }
-
-    @Override
-    public Optional<Event> getEventById(Long id) {
-        return eventRepository.findAllById(Collections.singleton(id.intValue())).stream().findFirst();
-    }
-
-    @Override
-    public List<Event> getEventsForCustomer(int id) {
-        return eventRepository.getEventsForCustomer(id);
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/FilmServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/FilmServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,52 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Film;
-import com.example.moviezone.model.procedures.FilmsReturnTable;
-import com.example.moviezone.repository.FilmRepository;
-import com.example.moviezone.service.FilmService;
-import org.springframework.stereotype.Service;
-
-import java.time.LocalDate;
-import java.util.Collections;
-import java.util.List;
-import java.util.Optional;
-
-@Service
-public class FilmServiceImpl implements FilmService {
-    private final FilmRepository filmRepository;
-
-    public FilmServiceImpl(FilmRepository filmRepository) {
-        this.filmRepository = filmRepository;
-    }
-
-    @Override
-    public List<Film> findAllFilms() {
-        return filmRepository.findAll();
-    }
-
-    @Override
-    public Film save(String name, Integer duration, String actors, String genre, String age_category, String url, String director, LocalDate start_date, LocalDate end_date) {
-        return filmRepository.save(new Film(name,duration,actors,genre,age_category,url,director,start_date,end_date));
-    }
-
-    @Override
-    public Optional<Film> getFilmById(Long id) {
-        return filmRepository.findAllById(Collections.singleton(id.intValue())).stream().findFirst();
-    }
-
-    @Override
-    public List<Film> getFilmsFromCinema(int id) {
-        return filmRepository.getFilmsFromCinema(id);
-    }
-
-    @Override
-    public List<Film> getFilmsFromCinemaNow(int id) {
-        return filmRepository.getFilmsFromCinemaNow(id);
-    }
-
-    @Override
-    public List<Film> getFilmsNow() {
-        return filmRepository.getFilmsNow();
-    }
-
-}
Index: c/main/java/com/example/moviezone/service/Impl/ProjectionIsPlayedInRoomServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/ProjectionIsPlayedInRoomServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,23 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
-import com.example.moviezone.repository.ProjectionIsPlayedInRoomRepository;
-import com.example.moviezone.service.ProjectionIsPlayedInRoomService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-import java.util.Optional;
-
-@Service
-public class ProjectionIsPlayedInRoomServiceImpl implements ProjectionIsPlayedInRoomService {
-    private final ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository;
-
-    public ProjectionIsPlayedInRoomServiceImpl(ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository) {
-        this.projectionIsPlayedInRoomRepository = projectionIsPlayedInRoomRepository;
-    }
-
-    @Override
-    public List<ProjectionIsPlayedInRoom> getProjectionPlayedInRoom(Integer id) {
-        return projectionIsPlayedInRoomRepository.findAllByProjectionId(id);
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/ProjectionServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/ProjectionServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,61 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Discount;
-import com.example.moviezone.model.Film;
-import com.example.moviezone.model.Projection;
-import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
-import com.example.moviezone.repository.DiscountRepository;
-import com.example.moviezone.repository.FilmRepository;
-import com.example.moviezone.repository.ProjectionIsPlayedInRoomRepository;
-import com.example.moviezone.repository.ProjectionRepository;
-import com.example.moviezone.service.ProjectionService;
-import org.springframework.stereotype.Service;
-
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.List;
-
-@Service
-public class ProjectionServiceImpl implements ProjectionService {
-    private final ProjectionRepository projectionRepository;
-    private final ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository;
-    private final FilmRepository filmRepository;
-    private final DiscountRepository discountRepository;
-    public ProjectionServiceImpl(ProjectionRepository projectionRepository, ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository, FilmRepository filmRepository, DiscountRepository discountRepository) {
-        this.projectionRepository = projectionRepository;
-        this.projectionIsPlayedInRoomRepository = projectionIsPlayedInRoomRepository;
-        this.filmRepository = filmRepository;
-        this.discountRepository = discountRepository;
-    }
-
-    @Override
-    public List<Projection> findAllProjections() {
-        return projectionRepository.findAll();
-    }
-
-    @Override
-    public List<Projection> getProjectionsForFilms(int id) {
-        return projectionRepository.getProjectionsForFilms(id);
-    }
-
-    @Override
-    public List<Projection> getProjectionsNow() {
-        return projectionRepository.getProjectionsNow();
-    }
-
-    @Override
-    public Projection findById(Integer id_projection) {
-        return projectionRepository.findById(id_projection).orElseThrow(RuntimeException::new);
-    }
-
-
-    @Override
-    public Projection save(LocalDateTime date_time_start, LocalDateTime date_time_end, String type_of_technology, Integer id_film, Integer id_room, Integer id_discount) {
-       Film film=filmRepository.findById(id_film).orElseThrow(RuntimeException::new);
-        Discount discount = discountRepository.findById(id_discount).orElseThrow(RuntimeException::new);
-        Projection projection =  projectionRepository.save(new Projection(date_time_start,type_of_technology,date_time_end,film,discount));
-        projectionIsPlayedInRoomRepository.save(new ProjectionIsPlayedInRoom(projection.getId_projection(),id_room));
-        return projection;
-    }
-
-}
Index: c/main/java/com/example/moviezone/service/Impl/Projection_RoomServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/Projection_RoomServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,27 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Projection_Room;
-import com.example.moviezone.repository.Projection_RoomRepository;
-import com.example.moviezone.service.Projection_RoomService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-@Service
-public class Projection_RoomServiceImpl implements Projection_RoomService {
-    private final Projection_RoomRepository projectionRoomRepository;
-
-    public Projection_RoomServiceImpl(Projection_RoomRepository projectionRoomRepository) {
-        this.projectionRoomRepository = projectionRoomRepository;
-    }
-
-    @Override
-    public List<Projection_Room> findAllProjectionRooms() {
-        return projectionRoomRepository.findAll();
-    }
-
-    @Override
-    public List<Projection_Room> getRoomByProjection(int id) {
-        return projectionRoomRepository.getRoomsForProjection(id);
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/SeatServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/SeatServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,60 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.*;
-import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
-import com.example.moviezone.repository.ProjectionIsPlayedInRoomRepository;
-import com.example.moviezone.repository.Projection_RoomRepository;
-import com.example.moviezone.repository.SeatRepository;
-import com.example.moviezone.service.SeatService;
-import org.springframework.stereotype.Service;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Optional;
-
-@Service
-public class SeatServiceImpl implements SeatService {
-
-
-    private final SeatRepository seatRepository;
-    private final TicketServiceImpl ticketService;
-    private final ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository;
-    private final Projection_RoomRepository projection_roomRepository;
-
-    public SeatServiceImpl(SeatRepository seatRepository, TicketServiceImpl ticketService, ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository, Projection_RoomRepository projection_roomRepository) {
-        this.seatRepository = seatRepository;
-        this.ticketService = ticketService;
-        this.projectionIsPlayedInRoomRepository = projectionIsPlayedInRoomRepository;
-        this.projection_roomRepository = projection_roomRepository;
-    }
-
-    @Override
-    public List<Seat> findAllSeats() {
-        return seatRepository.findAll();
-    }
-
-    @Override
-    public List<Seat> findAllByProjection_Room(Projection_Room projection_room) {
-        return seatRepository.findAllByProjection(projection_room);
-    }
-
-    @Override
-    public List<Seat> findAllByRoomAndCategory(Projection projection, Projection_Room projectionRoom, Category category) {
-        List<Ticket> tickets=ticketService.findAllTickets();
-        List<Seat> seats=seatRepository.findAllByCategoryAndProjection(category,projectionRoom);
-
-        for (int i = 0; i < tickets.size(); i++) {
-            if(tickets.get(i).getProjection()==projection){
-                if(seats.contains(tickets.get(i).getSeat())){
-                    seats.remove(tickets.get(i).getSeat());
-                }
-            }
-        }
-        return seats;
-    }
-
-    @Override
-    public Optional<Seat> getSeatById(int id) {
-        return Optional.of(seatRepository.getById(id));
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/TicketServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/TicketServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,55 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.*;
-import com.example.moviezone.repository.TicketRepository;
-import com.example.moviezone.service.TicketService;
-import org.springframework.stereotype.Service;
-
-import java.time.LocalDate;
-import java.util.List;
-
-@Service
-public class TicketServiceImpl implements TicketService {
-    private final TicketRepository ticketRepository;
-
-    public TicketServiceImpl(TicketRepository ticketRepository) {
-        this.ticketRepository = ticketRepository;
-    }
-
-    @Override
-    public List<Ticket> findAllTickets() {
-        return ticketRepository.findAll();
-    }
-
-    @Override
-    public List<Ticket> findAllByCustomer(Customer customer) {
-        return ticketRepository.findAllByCustomer(customer);
-    }
-
-    @Override
-    public Ticket saveWithDiscount(LocalDate date, Customer customer, Projection projection, Discount discount, Seat seat) {
-        Ticket t=new Ticket(date,customer,projection,discount,seat);
-        return ticketRepository.save(t);
-    }
-
-    @Override
-    public Ticket saveWithout(LocalDate date, Customer customer, Projection projection, Seat seat) {
-        Ticket t=new Ticket(date,customer,projection,seat);
-        return ticketRepository.save(t);
-    }
-
-    @Override
-    public Ticket save(long price, Customer customer) {
-        return ticketRepository.save(new Ticket(price,customer));
-    }
-
-    @Override
-    public Integer priceForTicket(int id) {
-        return ticketRepository.getPriceForTicket(id);
-    }
-
-    @Override
-    public void delete(int id) {
-        ticketRepository.deleteById(id);
-    }
-}
Index: c/main/java/com/example/moviezone/service/Impl/UserServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/UserServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,81 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.*;
-import com.example.moviezone.model.exceptions.InvalidUsernameOrPasswordException;
-import com.example.moviezone.model.exceptions.PasswordsDoNotMatchException;
-import com.example.moviezone.model.exceptions.UserNotFoundException;
-import com.example.moviezone.repository.CustomerRepository;
-import com.example.moviezone.repository.UserRepository;
-import com.example.moviezone.repository.WorkerRepository;
-import com.example.moviezone.service.UserService;
-import org.springframework.security.crypto.password.PasswordEncoder;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-@Service
-public class UserServiceImpl implements UserService {
-
-    private final UserRepository userRepository;
-    private final PasswordEncoder passwordEncoder;
-    private final WorkerRepository workerRepository;
-    private final CustomerRepository customerRepository;
-
-    public UserServiceImpl(UserRepository userRepository, PasswordEncoder passwordEncoder, WorkerRepository workerRepository, CustomerRepository customerRepository) {
-        this.userRepository = userRepository;
-        this.passwordEncoder = passwordEncoder;
-        this.workerRepository = workerRepository;
-        this.customerRepository = customerRepository;
-    }
-
-    @Override
-    public List<User> findAllUsers() {
-        return userRepository.findAll();
-    }
-
-    @Override
-    public User findById(Integer id) {
-        return userRepository.findById(id).orElseThrow(UserNotFoundException::new);
-    }
-
-    @Override
-    public User findByUsername(String username) {
-        return userRepository.findByUsername(username);
-    }
-
-    @Override
-    public void register(String first_name, String last_name, String username, String email, String number, String password, Role role) {
-//       if(!password.equals(repeatedPassword))
-//           throw new PasswordsDoNotMatchException();
-//       if (username==null || username.isEmpty()  || password==null || password.isEmpty())
-//            throw new InvalidUsernameOrPasswordException();
-
-       if(role.equals(Role.ROLE_ADMIN))
-        {
-//            User user= new User(passwordEncoder.encode(password),first_name,last_name,username,email,number);
-//            workerRepository.save((Worker) user);
-            userRepository.save(new Worker(password,first_name,last_name,email,number,username));
-        }
-        else
-       {
-//           Customer customer=new Customer(passwordEncoder.encode(password),first_name,last_name,username,email,number);
-//           customerRepository.save(customer);
-           userRepository.save(new Customer(password,first_name,last_name,email,number,username));
-
-       }
-
-    }
-
-    @Override
-    public User login(String username, String password) {
-        return userRepository.findAllByUsernameAndPassword(username,password).stream().findFirst().orElseThrow(UserNotFoundException::new);
-    }
-
-    @Override
-    public void registerWorker(String first_name, String last_name, String username, String email, String number, String password, String position, String work_hours_from, String work_hours_to, Cinema cinema) {
-        userRepository.save(new Worker(password,first_name,last_name,email,number,username,position,work_hours_from,work_hours_to,cinema));
-
-    }
-
-
-}
Index: c/main/java/com/example/moviezone/service/Impl/WorkerServiceImpl.java
===================================================================
--- src/main/java/com/example/moviezone/service/Impl/WorkerServiceImpl.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,27 +1,0 @@
-package com.example.moviezone.service.Impl;
-
-import com.example.moviezone.model.Worker;
-import com.example.moviezone.repository.WorkerRepository;
-import com.example.moviezone.service.WorkerService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-@Service
-public class WorkerServiceImpl implements WorkerService {
-    private final WorkerRepository workerRepository;
-
-    public WorkerServiceImpl(WorkerRepository workerRepository) {
-        this.workerRepository = workerRepository;
-    }
-
-    @Override
-    public List<Worker> findAllWorkers() {
-        return workerRepository.findAll();
-    }
-
-    @Override
-    public Worker getWorkerByUsername(String username) {
-        return workerRepository.getByUsername(username);
-    }
-}
Index: c/main/java/com/example/moviezone/service/ProjectionIsPlayedInRoomService.java
===================================================================
--- src/main/java/com/example/moviezone/service/ProjectionIsPlayedInRoomService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,12 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Film;
-import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
-
-import java.util.List;
-import java.util.Optional;
-
-public interface ProjectionIsPlayedInRoomService {
-    List<ProjectionIsPlayedInRoom> getProjectionPlayedInRoom(Integer id);
-
-}
Index: c/main/java/com/example/moviezone/service/ProjectionService.java
===================================================================
--- src/main/java/com/example/moviezone/service/ProjectionService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,16 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Film;
-import com.example.moviezone.model.Projection;
-
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.List;
-
-public interface ProjectionService {
-    List<Projection> findAllProjections();
-    List<Projection> getProjectionsForFilms(int id);
-    List<Projection> getProjectionsNow();
-    Projection findById(Integer id_projection);
-    Projection save(LocalDateTime date_time_start, LocalDateTime date_time_end, String type_of_technology, Integer id_film, Integer id_room, Integer id_discount);
-}
Index: c/main/java/com/example/moviezone/service/Projection_RoomService.java
===================================================================
--- src/main/java/com/example/moviezone/service/Projection_RoomService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,12 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Projection_Room;
-import org.springframework.data.jpa.repository.query.Procedure;
-
-import java.util.List;
-
-public interface Projection_RoomService {
-    List<Projection_Room> findAllProjectionRooms();
-
-    List<Projection_Room> getRoomByProjection(int id);
-}
Index: c/main/java/com/example/moviezone/service/SeatService.java
===================================================================
--- src/main/java/com/example/moviezone/service/SeatService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,16 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Category;
-import com.example.moviezone.model.Projection;
-import com.example.moviezone.model.Projection_Room;
-import com.example.moviezone.model.Seat;
-
-import java.util.List;
-import java.util.Optional;
-
-public interface SeatService {
-    List<Seat> findAllSeats();
-    List<Seat> findAllByProjection_Room(Projection_Room projection_room);
-    List<Seat> findAllByRoomAndCategory(Projection projection, Projection_Room projectionRoom, Category category);
-    Optional<Seat> getSeatById(int id);
-}
Index: c/main/java/com/example/moviezone/service/TicketService.java
===================================================================
--- src/main/java/com/example/moviezone/service/TicketService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,16 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.*;
-
-import java.time.LocalDate;
-import java.util.List;
-
-public interface TicketService {
-    List<Ticket> findAllTickets();
-    List<Ticket> findAllByCustomer(Customer customer);
-    Ticket saveWithDiscount(LocalDate date, Customer customer, Projection projection, Discount discount, Seat seat);
-    Ticket saveWithout(LocalDate date,Customer customer,Projection projection,Seat seat);
-    Ticket save(long price,Customer customer);
-    Integer priceForTicket(int id);
-    void delete(int id);
-}
Index: c/main/java/com/example/moviezone/service/UserService.java
===================================================================
--- src/main/java/com/example/moviezone/service/UserService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,17 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Cinema;
-import com.example.moviezone.model.Role;
-import com.example.moviezone.model.User;
-
-import java.util.List;
-
-public interface UserService {
-    List<User> findAllUsers();
-    User findById(Integer user_id);
-    User findByUsername(String username);
-
-    void register(String first_name, String last_name,String username, String email, String number, String password, Role role);
-    User login(String username,String password);
-    void registerWorker(String first_name, String last_name, String username, String email, String number, String password, String position, String work_hours_from, String work_hours_to, Cinema cinema);
-}
Index: c/main/java/com/example/moviezone/service/WorkerService.java
===================================================================
--- src/main/java/com/example/moviezone/service/WorkerService.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-package com.example.moviezone.service;
-
-import com.example.moviezone.model.Worker;
-
-import java.util.List;
-
-public interface WorkerService {
-    List<Worker> findAllWorkers();
-    Worker getWorkerByUsername(String username);
-}
Index: c/main/java/com/example/moviezone/web/HomeController.java
===================================================================
--- src/main/java/com/example/moviezone/web/HomeController.java	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,509 +1,0 @@
-package com.example.moviezone.web;
-
-
-import com.example.moviezone.model.*;
-import com.example.moviezone.model.enums.GenreEnum;
-import com.example.moviezone.model.exceptions.PasswordsDoNotMatchException;
-
-import com.example.moviezone.model.exceptions.UserNotFoundException;
-import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
-
-import com.example.moviezone.model.procedures.FilmsReturnTable;
-
-import com.example.moviezone.model.procedures.TicketsCancelClass;
-import com.example.moviezone.service.*;
-import org.springframework.format.annotation.DateTimeFormat;
-import org.springframework.stereotype.Controller;
-import org.springframework.ui.Model;
-import org.springframework.web.bind.annotation.*;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-import javax.transaction.Transactional;
-import java.io.IOException;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.time.temporal.ChronoUnit;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.stream.Collectors;
-
-@Controller
-@RequestMapping({"/","/home"})
-public class HomeController {
-
-private final FilmService filmService;
-private final UserService userService;
-private final ProjectionService projectionService;
-private final EventService eventService;
-private final TicketService ticketService;
-private final WorkerService workerService;
-private final CustomerRatesFilmService customerRatesFilmService;
-private final CinemaService cinemaService;
-private final CinemaOrganizesEventService cinemaOrganizesEventService;
-private final CinemaPlaysFilmService cinemaPlaysFilmService;
-private final ProjectionIsPlayedInRoomService projectionIsPlayedInRoomService;
-private final CategoryService categoryService;
-private final SeatService seatService;
-private final CustomerService customerService;
-private final Projection_RoomService projectionRoomService;
-private final CustomerIsInterestedInEventService customerIsInterestedInEventService;
-private final DiscountService discountService;
-
-    public HomeController(FilmService filmService, UserService userService, ProjectionService projectionService, EventService eventService, TicketService ticketService, WorkerService workerService, CustomerRatesFilmService customerRatesFilmService, CinemaService cinemaService, CinemaOrganizesEventService cinemaOrganizesEventService, CinemaPlaysFilmService cinemaPlaysFilmService, ProjectionIsPlayedInRoomService projectionIsPlayedInRoomService, CategoryService categoryService, SeatService seatService, CustomerService customerService, Projection_RoomService projectionRoomService, CustomerIsInterestedInEventService customerIsInterestedInEventService, DiscountService discountService)
-    {
-
-        this.filmService = filmService;
-        this.userService = userService;
-        this.projectionService = projectionService;
-        this.eventService = eventService;
-        this.ticketService = ticketService;
-        this.workerService = workerService;
-        this.customerRatesFilmService = customerRatesFilmService;
-        this.cinemaService = cinemaService;
-        this.cinemaOrganizesEventService = cinemaOrganizesEventService;
-        this.cinemaPlaysFilmService = cinemaPlaysFilmService;
-        this.projectionIsPlayedInRoomService = projectionIsPlayedInRoomService;
-        this.categoryService = categoryService;
-        this.seatService = seatService;
-        this.customerService = customerService;
-        this.projectionRoomService = projectionRoomService;
-        this.customerIsInterestedInEventService = customerIsInterestedInEventService;
-        this.discountService = discountService;
-    }
-
-    @GetMapping
-    public String getHomePage(Model model) {
-        List<Film> films=filmService.findAllFilms();
-        Collections.reverse(films);
-        films=films.stream().limit(5).collect(Collectors.toList());
-        List <Event> events=eventService.findAllEvents();
-        Collections.reverse(events);
-        events=events.stream().limit(5).collect(Collectors.toList());
-        model.addAttribute("films", films);
-        model.addAttribute("events",events);
-        model.addAttribute("bodyContent", "home");
-
-        return "master-template";
-    }
-    @GetMapping("/getFilm/{id}")
-    public String getFilm(@PathVariable Long id, Model model) {
-        Film film=filmService.getFilmById(id).get();
-        model.addAttribute("film", film);
-        List<String> genres= List.of(film.getGenre().split(","));
-        double r=customerRatesFilmService.avg_rating(film.getId_film());
-        Double ra=Double.valueOf(r);
-        if(ra==null){
-            r=0;
-        }
-        model.addAttribute("rating",r);
-        model.addAttribute("genres", genres);
-        model.addAttribute("bodyContent", "film");
-
-        return "master-template";
-    }
-    @GetMapping("/getEvent/{id}")
-    public String getEvent(@PathVariable Long id, Model model) {
-        Event event =eventService.getEventById(id).get();
-        model.addAttribute("event", event);
-        model.addAttribute("bodyContent", "event");
-
-        return "master-template";
-    }
-    @GetMapping("/getProjections/{id}")
-    @Transactional
-    public String getProjectionsFromFilm(@PathVariable Long id, Model model) {
-        Film film=filmService.getFilmById(id).get();
-        model.addAttribute("film",film);
-        model.addAttribute("projections",projectionService.getProjectionsForFilms(id.intValue()));
-        model.addAttribute("categories",categoryService.findAllCategories());
-        model.addAttribute("bodyContent", "projectionsForFilm");
-
-        return "master-template";
-    }
-    @GetMapping("/getSeats/{id}")
-    @Transactional
-    public String getSeats(@PathVariable Long id, Model model,@RequestParam Long id_category,@RequestParam Long film) {
-        Category category=categoryService.getCategoryById(id_category.intValue()).get();
-        Projection projection=projectionService.findById(id.intValue());
-        model.addAttribute("film",filmService.getFilmById(film).get());
-        model.addAttribute("projection",projection);
-        model.addAttribute("category",category);
-
-        List<Seat> seats=seatService.findAllByRoomAndCategory(projection,projectionRoomService.getRoomByProjection(projection.getId_projection()).get(0),category);
-        model.addAttribute("seats",seats);
-        model.addAttribute("bodyContent", "seats");
-
-        return "master-template";
-    }
-    @GetMapping("/login")
-    public String getLoginPage(Model model)
-    {
-        model.addAttribute("bodyContent", "login");
-        return "master-template";
-    }
-
-    @GetMapping("/register")
-    public String getRegisterPage(Model model)
-    {
-        model.addAttribute("bodyContent", "register");
-        return "master-template";
-    }
-
-    @PostMapping("/login")
-    public String login(@RequestParam String username,
-                        @RequestParam String password, Model model, HttpServletRequest request)
-    {
-//        User user = null;
-        try {
-           User user=userService.login(username,password);
-        System.out.println(user.getFirst_name());
-        request.getSession().setAttribute("user", user);
-        //            model.addAttribute("user",user);
-            return "redirect:/home";
-
-        }catch (UserNotFoundException e)
-        {
-            model.addAttribute("hasError", true);
-            model.addAttribute("error", e.getMessage());
-            return "login";
-        }
-
-    }
-
-    @PostMapping("/register")
-    public void register(@RequestParam String username,
-                           @RequestParam String first_name,
-                           @RequestParam String last_name,
-                           @RequestParam String password,
-                           @RequestParam String repeatedPassword,
-                           @RequestParam String email,
-                           @RequestParam String number,
-                           @RequestParam Role role,HttpServletResponse response, HttpSession session) throws IOException {
-
-        System.out.println(username + first_name+ last_name + password + repeatedPassword + email + number + role);
-        if(role.equals(Role.ROLE_ADMIN)){
-            session.setAttribute("username", username);
-            session.setAttribute("first_name", first_name);
-            session.setAttribute("last_name", last_name);
-            session.setAttribute("password", password);
-            session.setAttribute("repeatedPassword", repeatedPassword);
-            session.setAttribute("email", email);
-            session.setAttribute("number", number);
-            response.sendRedirect("/registerWorker");
-        }
-        else {
-            try {
-                userService.register(first_name,last_name,username,email,number,password,role);
-
-            }catch (PasswordsDoNotMatchException exception)
-            {
-//                return "redirect:/register?error=" + exception.getMessage();
-            }
-            response.sendRedirect("/login");
-        }
-
-    }
-    @GetMapping("/registerWorker")
-    public String getRegisterWorkerPage(Model model){
-        model.addAttribute("cinemas",cinemaService.findAllCinemas());
-        model.addAttribute("bodyContent","registerWorker");
-        return "master-template";
-    }
-    @PostMapping("/finishRegister")
-    public void handleWorkerRegister(Model model, HttpServletResponse response, HttpSession session,
-                                     @RequestParam String position, @RequestParam String work_hours_from,
-                                     @RequestParam String work_hours_to,@RequestParam Integer id_cinema){
-        System.out.println("here?");
-        String username = (String) session.getAttribute("username");
-        String first_name = (String) session.getAttribute("first_name");
-        String last_name = (String) session.getAttribute("last_name");
-        String password = (String) session.getAttribute("password");
-        String email = (String) session.getAttribute("email");
-        String number = (String) session.getAttribute("number");
-        Cinema cinema=cinemaService.findCinemaById(id_cinema);
-        userService.registerWorker(first_name,last_name,username,email,number,password,position,work_hours_from,work_hours_to,cinema);
-        try {
-            response.sendRedirect("/login");
-        } catch (IOException e) {
-            throw new RuntimeException(e);
-        }
-    }
-
-    @GetMapping("/films")
-    @Transactional
-    public String getFilmsPage1(Model model,@RequestParam(required = false) Integer id_cinema, @RequestParam(required = false) Integer id_genre){
-        model.addAttribute("cinemas",cinemaService.findAllCinemas());
-        List<GenreEnum> genres = List.of(GenreEnum.values());
-        model.addAttribute("genres", genres);
-        List<Film> films = filmService.findAllFilms();
-        if (id_cinema!=null) {
-            films = filmService.getFilmsFromCinema(id_cinema);
-        }
-        if ( id_genre != null){
-            List<Film> pom= new ArrayList<>();
-            for (int i = 0; i < films.size(); i++) {
-                if(films.get(i).getGenre().contains(genres.get(id_genre).name().toLowerCase())){
-                   pom.add(films.get(i));
-                }
-            }
-            films=pom;
-        }
-        model.addAttribute("films",films);
-        model.addAttribute("bodyContent","films");
-        return "master-template";
-    }
-    @Transactional
-    @GetMapping("/projections")
-    public String getProjectionsPage(Model model,@RequestParam(required = false) Integer id_cinema)
-    {
-        model.addAttribute("cinemas",cinemaService.findAllCinemas());
-        if (id_cinema!=null) {
-            model.addAttribute("films",filmService.getFilmsFromCinemaNow(id_cinema));
-        }else{
-            List<FilmsReturnTable> pom=new LinkedList<>();
-            model.addAttribute("films",filmService.getFilmsNow());
-        }
-        model.addAttribute("bodyContent","projections");
-        return "master-template";
-    }
-    @GetMapping("/events")
-    @Transactional
-    public String getEventsPage(Model model,@RequestParam(required = false) Integer id_cinema)
-    {
-        model.addAttribute("cinemas",cinemaService.findAllCinemas());
-        if (id_cinema!=null) {
-            model.addAttribute("events",eventService.getEventsFromCinema(id_cinema));
-        }else{
-            model.addAttribute("events",eventService.getEventsNow());
-        }
-        model.addAttribute("bodyContent","events");
-        return "master-template";
-    }
-    @GetMapping("/myTickets")
-    public  String getMyTicketsPage(Model model,HttpServletRequest request)
-    {
-        Customer customer=customerService.findByUsername(request.getRemoteUser());
-        List<Ticket> tickets = ticketService.findAllByCustomer(customer);
-        List<TicketsCancelClass> ticketsCancelClass = new ArrayList<>();
-        LocalDateTime oneDayLater = LocalDateTime.now().plus(1, ChronoUnit.DAYS);
-        for (int i = 0; i < tickets.size(); i++) {
-            if(tickets.get(i).getProjection().getDate_time_start().isAfter(oneDayLater)){
-                ticketsCancelClass.add(new TicketsCancelClass(tickets.get(i),true));
-            }else{
-                ticketsCancelClass.add(new TicketsCancelClass(tickets.get(i),false));
-            }
-        }
-        model.addAttribute("tickets",ticketsCancelClass);
-        model.addAttribute("bodyContent","myTickets");
-        return "master-template";
-    }
-
-    @PostMapping("/cancelTicket/{id}")
-    public String getSeats(@PathVariable Long id, Model model) {
-        ticketService.delete(id.intValue());
-        return "redirect:/myTickets";
-    }
-
-    @GetMapping("/addProjection")
-    @Transactional
-    public  String getAddProjectionPage(Model model)
-    {
-        model.addAttribute("films",filmService.findAllFilms());
-        model.addAttribute("projection_rooms", projectionRoomService.findAllProjectionRooms());
-        model.addAttribute("discounts",discountService.getValidDiscounts());
-        model.addAttribute("bodyContent","addProjection");
-        return "master-template";
-    }
-    @GetMapping("/addDiscount")
-    public  String getAddDiscountPage(Model model)
-    {
-        model.addAttribute("bodyContent","addDiscount");
-        return "master-template";
-    }
-    @GetMapping("/addEvent")
-    public  String getAddEventPage(Model model)
-    {
-        model.addAttribute("bodyContent","addEvent");
-        return "master-template";
-    }
-    @GetMapping("/addFilm")
-    public  String getAddFilmPage(Model model)
-    {
-        model.addAttribute("bodyContent","addFilm");
-        return "master-template";
-    }
-
-    @PostMapping("/addD")
-    public String saveEvent(@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate validity,
-                            @RequestParam String type,
-                            @RequestParam String code,
-                            @RequestParam Integer percent)
-    {
-        discountService.save(code,type,validity,percent);
-        return "redirect:/home";
-    }
-
-    @PostMapping("/addP")
-    public String saveProjection(@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime date_time_start,
-                                 @RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime date_time_end,
-                                 @RequestParam String type_of_technology,
-                                 @RequestParam Integer id_film,
-                                @RequestParam Integer id_room,
-                                @RequestParam Integer id_discount)
-    {
-        projectionService.save(date_time_start,date_time_end,type_of_technology,id_film,id_room,id_discount);
-         return "redirect:/home";
-    }
-    @PostMapping("/addE")
-    public String saveEvent(@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate start_date,
-                                 @RequestParam String theme,
-                                 @RequestParam String duration,
-                                @RequestParam String img_url,
-                            @RequestParam String repeating)
-    {
-        eventService.save(start_date,theme,duration,repeating,img_url);
-        return "redirect:/home";
-    }
-    @PostMapping("/addF")
-    public String saveFilm(
-                            @RequestParam String name,
-                            @RequestParam Integer duration,
-                            @RequestParam String actors,
-                           @RequestParam String genre,
-                           @RequestParam String age_category,
-                           @RequestParam String url,
-                           @RequestParam String director,
-                            @RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate start_date,
-                            @RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate end_date
-                           )
-    {
-        filmService.save(name,duration,actors,genre,age_category,url,director,start_date,end_date);
-        return "redirect:/home";
-    }
-
-    @GetMapping("/workers")
-    public String getWorkersPage(Model model)
-    {
-        model.addAttribute("workers",workerService.findAllWorkers());
-        model.addAttribute("bodyContent", "workers");
-        return "master-template";
-    }
-
-    @GetMapping("/addEventToCinema")
-    public  String getCinemaOrganizesEventPage(Model model)
-    {
-        model.addAttribute("cinemas",cinemaService.findAllCinemas());
-        model.addAttribute("events",eventService.findAllEvents());
-        model.addAttribute("bodyContent","addEventToCinema");
-        return "master-template";
-    }
-
-    @PostMapping("/addCinemaOrganizesEvent")
-    public String saveCinemaOrganizesEvent(@RequestParam Integer id_cinema,
-                                           @RequestParam Integer id_event)
-    {
-
-       cinemaOrganizesEventService.save(id_cinema,id_event);
-       return "redirect:/home";
-    }
-    @GetMapping("/addFilmToCinema")
-    public  String getCinemaPlaysFilmPage(Model model)
-    {
-        model.addAttribute("cinemas",cinemaService.findAllCinemas());
-        model.addAttribute("films",filmService.findAllFilms());
-        model.addAttribute("bodyContent","addFilmToCinema");
-        return "master-template";
-    }
-    @PostMapping("/addCinemaPlaysFilm")
-    public String saveCinemaPlaysFilm(@RequestParam Integer id_cinema,
-                                           @RequestParam Integer id_film)
-    {
-        cinemaPlaysFilmService.save(id_cinema,id_film);
-        return "redirect:/home";
-    }
-
-    @GetMapping("/getProjection/{id}")
-    public String getProjection(@PathVariable Integer id_projection,Model model)
-    {
-        List<Projection_Room> projectionRooms = null;
-        Projection projection=projectionService.findById(id_projection);
-
-
-        List<ProjectionIsPlayedInRoom> p= projectionIsPlayedInRoomService.getProjectionPlayedInRoom(id_projection);
-
-        model.addAttribute("projection",projection);
-        model.addAttribute("p_rooms",projectionRooms);
-        model.addAttribute("bodyContent","projectionDetails");
-        return "master-template";
-    }
-
-    @PostMapping("/makeReservation")
-    @Transactional
-    public String createTicketForReservation(@RequestParam Long film,@RequestParam Long projection,@RequestParam Long id_seat,@RequestParam String discount,HttpServletRequest request, HttpServletResponse respons)
-    {
-        Ticket t;
-        Customer customer=customerService.findByUsername(request.getRemoteUser());
-        Projection projection1=projectionService.findById(projection.intValue());
-        if(projection1.getDiscount()!=null && projection1.getDiscount().getCode().equals(discount)){
-            t=ticketService.saveWithDiscount(LocalDate.now(),customer,projection1,projection1.getDiscount(),seatService.getSeatById(id_seat.intValue()).get());
-            Integer price=ticketService.priceForTicket(t.getId_ticket());
-            price+=seatService.getSeatById(id_seat.intValue()).get().getCategory().getExtra_amount();
-            price-=(price*projection1.getDiscount().getPercent())/100;
-            t.setPrice(price);
-        }else{
-            t=ticketService.saveWithout(LocalDate.now(),customer,projection1,seatService.getSeatById(id_seat.intValue()).get());
-            Integer price=ticketService.priceForTicket(t.getId_ticket());
-            price+=seatService.getSeatById(id_seat.intValue()).get().getCategory().getExtra_amount();
-            t.setPrice(price);
-        }
-
-        return "redirect:/myTickets";
-    }
-    @PostMapping("/addRating/{id}")
-    public String addRating(@RequestParam Long rate,@PathVariable Long id,HttpServletRequest request, HttpServletResponse respons)
-    {
-        Customer customer=customerService.findByUsername(request.getRemoteUser());
-        System.out.println(customer.getFirst_name());
-        customerRatesFilmService.addRating(customer.getId_user(),Integer.valueOf(id.intValue()),Integer.valueOf(rate.intValue()));
-        return "redirect:/home/getFilm/"+id;
-    }
-    @GetMapping("/profileWorker")
-    public String getWorkerProfile(Model model,HttpServletRequest request)
-    {
-        Worker worker=workerService.getWorkerByUsername(request.getRemoteUser());
-        model.addAttribute("worker",worker);
-        model.addAttribute("bodyContent", "profileWorker");
-        return "master-template";
-    }
-    @GetMapping("/profileUser")
-    @Transactional
-    public String getUserProfile(Model model,HttpServletRequest request)
-    {
-        Customer customer=customerService.findByUsername(request.getRemoteUser());
-        System.out.println(customer.getFirst_name());
-        List<Event> events=eventService.getEventsForCustomer(customer.getId_user());
-        model.addAttribute("customer",customer);
-        model.addAttribute("events",events);
-        model.addAttribute("bodyContent", "profileUser");
-        return "master-template";
-    }
-    @PostMapping("/addInterestedEvent/{id}")
-    public String addInterestedEvent(@PathVariable Long id,HttpServletRequest request, HttpServletResponse respons)
-    {
-        Customer customer=customerService.findByUsername(request.getRemoteUser());
-        customerIsInterestedInEventService.add(customer.getId_user(),Integer.valueOf(id.intValue()));
-        return "redirect:/profileUser";
-    }
-    @PostMapping("/deleteInterestedEvent/{id}")
-    public String deleteInterestedEvent(@PathVariable Long id,HttpServletRequest request, HttpServletResponse respons)
-    {
-        Customer customer=customerService.findByUsername(request.getRemoteUser());
-        Event event=eventService.getEventById(id).get();
-        customerIsInterestedInEventService.delete(customer,event);
-        return "redirect:/profileUser";
-    }
-}
Index: c/main/resources/application-prod.properties
===================================================================
--- src/main/resources/application-prod.properties	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,15 +1,0 @@
-spring.datasource.url=jdbc:postgresql://localhost:5444/db_202223z_va_prj_moviezone
-spring.datasource.username=db_202223z_va_prj_moviezone_owner
-spring.datasource.password=7f414e0b6d62
-
-
-## default connection pool
-spring.datasource.hikari.connectionTimeout=20000
-spring.datasource.hikari.maximumPoolSize=5
-
-spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQL95Dialect
-spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
-spring.jpa.properties.hibernate.default_schema=project
-
-spring.jpa.hibernate.ddl-auto=validate
-spring.jpa.show-sql=true
Index: src/main/resources/application.properties
===================================================================
--- src/main/resources/application.properties	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ src/main/resources/application.properties	(revision 1bcb2a836fb4eec3e67695abebfc593735071a34)
@@ -1,4 +1,1 @@
-server.port=9091
 
-spring.profiles.active=prod
-spring.jpa.properties.hibernate.default_schema=project
Index: c/main/resources/templates/addDiscount.html
===================================================================
--- src/main/resources/templates/addDiscount.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,48 +1,0 @@
-<th:block xmlns:th="http://www.thymeleaf.org">
-    <div style="color: white" class="container">
-        <h1 class="jumbotron-heading">Додани нов попуст</h1>
-        <div class="row">
-            <div class="col-md-5">
-                <form action="/home/addD" method="POST">
-                    <div class="form-group">
-                        <label for="code">Код</label>
-                        <input type="text"
-                               class="form-control"
-                               id="code"
-                               name="code"
-                               required
-                               placeholder="внеси код">
-                    </div>
-                    <div class="form-group">
-                        <label for="validity">Валиндост</label>
-                        <input type="date"
-                               class="form-control"
-                               id="validity"
-                               name="validity"
-                               placeholder="Валидност">
-                    </div>
-                    <div class="form-group">
-                        <label for="type">Тип</label>
-                        <input type="text"
-                               class="form-control"
-                               id="type"
-                               name="type"
-                               placeholder="Тип">
-                    </div>
-                    <div class="form-group">
-                        <label for="percent">Процент</label>
-                        <input type="number"
-                               class="form-control"
-                               id="percent"
-                               name="percent"
-                        >
-                    </div>
-                    <button style="background-color: #ff5019" id="submit" type="submit" class="btn btn-primary">Додади</button>
-                </form>
-            </div>
-
-        </div>
-
-    </div>
-
-</th:block>
Index: c/main/resources/templates/addEvent.html
===================================================================
--- src/main/resources/templates/addEvent.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,59 +1,0 @@
-<th:block xmlns:th="http://www.thymeleaf.org">
-    <div style="color: white" class="container">
-        <h1 class="jumbotron-heading">Додани нов настан</h1>
-        <div class="row">
-            <div class="col-md-5">
-                <form action="/home/addE" method="POST">
-                    <div class="form-group">
-                        <label for="theme">Тема</label>
-                        <input type="text"
-                               class="form-control"
-                               id="theme"
-                               name="theme"
-                               required
-                               placeholder="внеси тема">
-                    </div>
-                    <div class="form-group">
-                        <label for="duration">Траење</label>
-                        <input type="text"
-                               class="form-control"
-                               id="duration"
-                               name="duration"
-                               placeholder="Duration">
-                    </div>
-                    <div class="form-group">
-                        <label for="repeating">Дали се повторува</label>
-                        <input type="text"
-                               class="form-control"
-                               id="repeating"
-                               name="repeating"
-                               placeholder="">
-                    </div>
-                    <div class="form-group">
-                        <label for="start_date">Почетен датум</label>
-                        <input type="date"
-                               class="form-control"
-                               id="start_date"
-                               name="start_date"
-                              >
-                    </div>
-                    <div class="form-group">
-                        <label for="img_url">Слика</label>
-                        <input type="text"
-                               class="form-control"
-                               id="img_url"
-                               name="img_url"
-                               placeholder="URL">
-                    </div>
-
-                    <button style="background-color: #ff5019" id="submit" type="submit" class="btn btn-primary">Додади</button>
-                </form>
-            </div>
-
-        </div>
-
-        <button style="background-color: #ff5019"  class="btn btn-primary"><a style="color: white" href="/addEventToCinema">Додади настан во кинотека</a></button>
-
-    </div>
-
-</th:block>
Index: c/main/resources/templates/addEventToCinema.html
===================================================================
--- src/main/resources/templates/addEventToCinema.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,36 +1,0 @@
-<th:block xmlns:th="http://www.thymeleaf.org">
-
-    <div class="container" style="color: white">
-        <h1 class="jumbotron-heading">Додади настан во кинотека</h1>
-        <div class="row">
-            <div class="col-md-5">
-                <form action="/home/addCinemaOrganizesEvent" method="POST">
-
-                    <div class="form-group">
-                        <label>Кинотека</label>
-                        <select name="id_cinema" id="f1" class="form-control">
-                            <option
-                                    th:each="c : ${cinemas}"
-                                    th:value="${c.id_cinema}"
-                                    th:text="${c.name}">
-                            </option>
-                        </select>
-                    </div>
-
-                    <div class="form-group">
-                        <label>Настан</label>
-                        <select name="id_event" id="f2" class="form-control">
-                            <option
-                                    th:each="e : ${events}"
-                                    th:value="${e.id_event}"
-                                    th:text="${e.theme}">
-                            </option>
-                        </select>
-                    </div>
-                    <button style="background-color: #ff5019" id="submit" type="submit" class="btn btn-primary">Додади </button>
-                </form>
-            </div>
-        </div>
-    </div>
-
-</th:block>
Index: c/main/resources/templates/addFilm.html
===================================================================
--- src/main/resources/templates/addFilm.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,89 +1,0 @@
-<th:block xmlns:th="http://www.thymeleaf.org">
-
-    <div class="container" style="color: white">
-        <h1 class="jumbotron-heading">Додади нов филм</h1>
-        <div class="row">
-            <div class="col-md-5">
-                <form action="/home/addF" method="POST">
-                    <div class="form-group">
-                        <label for="name">Име</label>
-                        <input type="text"
-                               class="form-control"
-                               id="name"
-                               name="name"
-                               required
-                               placeholder="Име на филмот">
-                    </div>
-                    <div class="form-group">
-                        <label for="duration">Траење</label>
-                        <input type="number"
-                               class="form-control"
-                               id="duration"
-                               name="duration"
-                               placeholder="Траење">
-                    </div>
-                    <div class="form-group">
-                        <label for="actors">Актери</label>
-                        <input type="text"
-                               class="form-control"
-                               id="actors"
-                               name="actors"
-                               placeholder="Актери">
-                    </div>
-                    <div class="form-group">
-                        <label for="genre">Жанр</label>
-                        <input type="text"
-                               class="form-control"
-                               id="genre"
-                               name="genre"
-                               placeholder="Жанр">
-                    </div>   <div class="form-group">
-                    <label for="age_category">Возрасна група</label>
-                    <input type="text"
-                           class="form-control"
-                           id="age_category"
-                           name="age_category"
-                           placeholder="Возрасна група">
-                </div>
-                    <div class="form-group">
-                    <label for="url">Слика</label>
-                    <input type="url"
-                           class="form-control"
-                           id="url"
-                           name="url"
-                           >
-                </div>
-                    <div class="form-group">
-                    <label for="director">Режисер</label>
-                    <input type="text"
-                           class="form-control"
-                           id="director"
-                           name="director"
-                           placeholder="Режисер">
-                </div>
-                    <div class="form-group">
-                        <label for="start_date">Почетен датум</label>
-                        <input type="date"
-                               class="form-control"
-                               id="start_date"
-                               name="start_date"
-                        >
-                    </div>
-                    <div class="form-group">
-                        <label for="end_date">Краен датум</label>
-                        <input type="date"
-                               class="form-control"
-                               id="end_date"
-                               name="end_date"
-                        >
-                    </div>
-
-                    <button style="background-color: #ff5019" id="submit" type="submit" class="btn btn-primary">Додади</button>
-                </form>
-            </div>
-        </div>
-        <button style="background-color: #ff5019"  class="btn btn-primary"><a style="color: white" href="/addFilmToCinema">Додади филм во кинотека</a></button>
-
-    </div>
-
-</th:block>
Index: c/main/resources/templates/addFilmToCinema.html
===================================================================
--- src/main/resources/templates/addFilmToCinema.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,36 +1,0 @@
-<th:block xmlns:th="http://www.thymeleaf.org">
-
-  <div class="container" style="color: white">
-    <h1 class="jumbotron-heading">Додади филм во кинотека</h1>
-    <div class="row">
-      <div class="col-md-5">
-        <form action="/home/addCinemaPlaysFilm" method="POST">
-
-          <div class="form-group">
-            <label>Кинотека</label>
-            <select name="id_cinema" id="f1" class="form-control">
-              <option
-                      th:each="c : ${cinemas}"
-                      th:value="${c.id_cinema}"
-                      th:text="${c.name}">
-              </option>
-            </select>
-          </div>
-
-          <div class="form-group">
-            <label>Филм</label>
-            <select name="id_film" id="f2" class="form-control">
-              <option
-                      th:each="f : ${films}"
-                      th:value="${f.id_film}"
-                      th:text="${f.name}">
-              </option>
-            </select>
-          </div>
-          <button style="background-color: #ff5019" id="submit" type="submit" class="btn btn-primary">Додади </button>
-        </form>
-      </div>
-    </div>
-  </div>
-
-</th:block>
Index: c/main/resources/templates/addProjection.html
===================================================================
--- src/main/resources/templates/addProjection.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,69 +1,0 @@
-<th:block xmlns:th="http://www.thymeleaf.org">
-
-    <div class="container" style="color: white">
-        <h1 class="jumbotron-heading">Додади нова проекција</h1>
-        <div class="row">
-            <div class="col-md-5">
-                <form action="/home/addP" method="POST">
-
-                    <div class="form-group">
-                        <label for="type_of_technology">Тип на технологија</label>
-                        <input type="text"
-                               class="form-control"
-                               id="type_of_technology"
-                               name="type_of_technology"
-                               >
-                    </div>
-                    <div class="form-group">
-                        <label for="date_time_start">Почетен датум</label>
-                        <input type="datetime-local"
-                               class="form-control"
-                               id="date_time_start"
-                               name="date_time_start"
-                        >
-                    </div>
-                    <div class="form-group">
-                        <label for="date_time_end">Краен датум</label>
-                        <input type="datetime-local"
-                               class="form-control"
-                               id="date_time_end"
-                               name="date_time_end"
-                        >
-                    </div>
-                    <div class="form-group">
-                        <label>Филм</label>
-                        <select name="id_film" id="f1" class="form-control">
-                            <option
-                                    th:each="f : ${films}"
-                                    th:value="${f.id_film}"
-                                    th:text="${f.name}">
-                            </option>
-                        </select>
-                    </div>
-                    <div class="form-group">
-                        <label>Сала</label>
-                        <select name="id_room" id="pr" class="form-control">
-                            <option
-                                    th:each="pr : ${projection_rooms}"
-                                    th:value="${pr.id_room}"
-                                    th:text="${pr.projection_room_number} + '-' + ${pr.cinema.name}">
-                            </option>
-                        </select>
-                    </div>
-                    <div class="form-group">
-                        <label>Попуст</label>
-                        <select name="id_discount" id="f2" class="form-control">
-                            <option
-                                    th:each="d : ${discounts}"
-                                    th:value="${d.id_discount}"
-                                    th:text="${d.type} + '-' + ${d.percent}">
-                            </option>
-                        </select>
-                    </div>
-                    <button style="background-color: #ff5019" id="submit" type="submit" class="btn btn-primary">Додади</button>
-                </form>
-            </div>
-        </div>
-    </div>
-
-</th:block>
Index: c/main/resources/templates/customerCinemaReport.html
===================================================================
--- src/main/resources/templates/customerCinemaReport.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="UTF-8">
-  <title>$Title$</title>
-</head>
-<body>
-$END$
-</body>
-</html>
Index: c/main/resources/templates/event.html
===================================================================
--- src/main/resources/templates/event.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,66 +1,0 @@
-<style>
-    .genres{
-        width: 100px;
-        text-align: center;
-        background-color: #ff5019;
-        border-radius: 20px;
-        color: #111111;
-        font-size: 20px;
-        font-weight: 200;
-        margin: 20px;
-    }
-    .main{
-        display: flex;
-        justify-content: space-between;
-        align-items: flex-start;
-        margin-left: 100px;
-    }
-    .slika{
-        margin-right: 100px;
-    }
-    img{
-        width: 300px;
-        height: 350px;
-        border-radius: 20px;
-    }
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-</style>
-<div xmlns:th="http://www.thymeleaf.org">
-    <div class="main">
-        <div class="container-1">
-            <h1 style="color: white; font-weight: 600" class="name" th:text="${event.getTheme()}">
-            </h1>
-            <h4 style="color: white;"> Почетен Датум:
-                <span th:text="${event.start_date}"></span>
-            </h4>
-            <h4 style="color: white"> Траење на настанот:
-                <span th:text="${event.duration}"></span>
-                минути
-            </h4>
-            <th:block sec:authorize="hasAuthority('ROLE_USER')" th:if="${#request.getRemoteUser() != null}">
-            <form th:action="@{'/home/addInterestedEvent/{id}' (id=${event.id_event})}"
-                  th:method="POST">
-                <button class="button" type="submit">Додади Заинтересиран</button>
-            </form>
-            </th:block>
-        </div>
-        <div class="slika">
-            <img th:src="@{${event.img_url}}"/>
-        </div>
-
-    </div>
-</div>
Index: c/main/resources/templates/events.html
===================================================================
--- src/main/resources/templates/events.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,251 +1,0 @@
-<style xmlns:sec="http://www.w3.org/1999/xhtml">
-    @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
-
-
-    *{
-        font-family: 'Poppins', sans-serif;
-    }
-
-
-    .container{
-
-        display: contents;
-        margin: 5%;
-    }
-
-    .container .card{
-        position: relative;
-        width: 250px;
-        height: 300px;
-        background: #232323;
-        border-radius: 20px;
-        overflow: hidden;
-    }
-
-    .container .card:before{
-        content: '';
-        position: absolute;
-        top: 0;
-        left: 0;
-        width: 100%;
-        height: 100%;
-        background: black;
-        transition: 0.5s ease-in-out;
-    }
-
-
-    .container .card:after{
-        position: absolute;
-
-        font-size: 6em;
-        font-weight: 600;
-        font-style: italic;
-        color: rgba(255,255,25,0.05)
-    }
-
-    .container .card .imgBx{
-        position: absolute;
-        width: 100%;
-        height: 300px;
-        transition: 0.5s;
-    }
-
-    .container .card:hover .imgBx{
-        top: 0%;
-
-    }
-
-    .container .card .imgBx img{
-        position: absolute;
-        width: 100%;
-    }
-
-    .container .card .contentBx{
-        position: absolute;
-        bottom: 0;
-        width: 100%;
-        height: 300px;
-        text-align: center;
-        transition: 1s;
-        z-index: 10;
-    }
-
-    .container .card:hover .contentBx{
-        height: 300px;
-    }
-
-    .container .card .contentBx h2{
-        position: relative;
-        font-weight: 300;
-        letter-spacing: 1px;
-        color: #fff;
-        margin: 0;
-    }
-
-    .container .card .contentBx .size, .container .card .contentBx .color, .container .card .contentBx .button {
-        display: flex;
-        justify-content: start;
-        align-items: start;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-
-    .container .card .contentBx .button {
-        display: flex;
-        justify-content: center;
-        align-items: center;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-    .container .card:hover .contentBx .size{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-    .container .card:hover .contentBx .button{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-
-    .container .card:hover .contentBx .color{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.6s;
-    }
-
-    .container .card .contentBx .size h3, .container .card .contentBx .color h3{
-        color: #fff;
-        font-weight: 600;
-        font-size: 8px;
-        text-transform: uppercase;
-        letter-spacing: 2px;
-        margin-right: 10px;
-    }
-
-    .container .card .contentBx .size span{
-        width: 26px;
-        height: 26px;
-        text-align: center;
-        line-height: 26px;
-        font-size: 8px;
-        display: inline-block;
-        color: #111;
-        background: #fff;
-        margin: 0 5px;
-        transition: 0.5s;
-        color: #111;
-        border-radius: 4px;
-        cursor: pointer;
-    }
-
-
-
-    .container .card .contentBx .color span{
-        width: 100%;
-        height: 20px;
-        color: white;
-        margin: 0 5px;
-        cursor: pointer;
-    }
-
-
-    .container .card .contentBx a{
-        display: inline-block;
-        padding: 10px 20px;
-        background: #fff;
-        border-radius: 4px;
-        margin-top: 10px;
-        text-decoration: none;
-        font-weight: 600;
-        color: #111;
-        opacity: 0;
-        transform: translateY(50px);
-        transition: 0.5s;
-        margin-top: 0;
-    }
-
-    .container .card:hover .contentBx a{
-        opacity: 1;
-        transition-delay: 0.75s;
-
-    }
-    .main{
-        margin-top: 100px;
-        display: flex;
-        flex-wrap: wrap;
-        align-items: flex-start;
-        justify-content: space-around;
-    }
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-</style>
-<div>
-    <form style="margin-left: 20px" th:action="@{'/home/events'}"
-          th:method="GET">
-        <div class="row">
-
-            <div class="form-group col-2">
-                <label style="color: white;font-size: 20px;font-weight: bold">Избери Кино:</label>
-                <select name="id_cinema" class="form-control" id="id_cinema">
-                    <option th:value="${null}" text="Please Select"></option>
-                    <option
-                            th:each="cinema : ${cinemas}"
-                            th:value="${cinema.getId_cinema()}"
-                            th:text="${cinema.getName()}">
-                    </option>
-                </select>
-
-
-            </div>
-            <div class="col-10 mt-4">
-                <button class="button" type="submit">Филтрирај</button>
-            </div>
-        </div>
-
-    </form>
-
-<div xmlns:th="http://www.thymeleaf.org">
-    <h1 style="color: white">Настани</h1>
-    <div class="main">
-        <div th:each="event : ${events}" class="container">
-            <div class="card">
-                <div class="imgBx">
-                    <img th:src="@{${event.img_url}}"/>
-                </div>
-                <div class="contentBx">
-                    <h2  th:text="${event.theme}"></h2>
-                    <div class="size">
-                        <h3>Duration :</h3>
-                        <span th:text="${event.getDuration()}"></span>
-                    </div>
-                    <form th:action="@{'/home/getEvent/{id}' (id=${event.getId_event()})}"
-                          th:method="GET">
-                        <button class="button" type="submit">Датали</button>
-                    </form>
-                </div>
-
-            </div>
-        </div>
-    </div>
-</div>
-</div>
Index: c/main/resources/templates/film.html
===================================================================
--- src/main/resources/templates/film.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,80 +1,0 @@
-<style>
-    .genres{
-        width: 100px;
-        text-align: center;
-        background-color: #ff5019;
-        border-radius: 20px;
-        color: #111111;
-        font-size: 20px;
-        font-weight: 200;
-        margin: 20px;
-    }
-    .main{
-        display: flex;
-        justify-content: space-between;
-        align-items: flex-start;
-        margin-left: 100px;
-    }
-    .slika{
-        margin-right: 100px;
-    }
-    img{
-        width: 300px;
-        height: 350px;
-        border-radius: 20px;
-    }
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-</style>
-<div xmlns:th="http://www.thymeleaf.org">
-<div class="main">
-        <div class="container-1">
-            <h1 style="color: white; font-weight: 600" class="name" th:text="${film.getName()}">
-            </h1>
-            <div th:each="genre : ${genres}" class="genres">
-                <span th:text="${genre}"></span>
-            </div>
-            <h4 style="color: white;"> Возрасна категорија:
-                <span th:text="${film.age_category}"></span>
-            </h4>
-            <h4 style="color: white"> Траење на филмот:
-                <span th:text="${film.duration}"></span>
-                минути
-            </h4>
-            <h4 style="color: white"> Режисер:
-                <span th:text="${film.director}"></span>
-            </h4>
-            <h4 style="color: white">
-                <span th:text="${rating}"></span>
-                <span>/5</span>
-            </h4>
-            <th:block sec:authorize="hasAuthority('ROLE_USER')" th:if="${#request.getRemoteUser() != null}">
-            <form th:action="@{'/home/addRating/{id}' (id=${film.id_film})}"
-                  th:method="POST">
-                <div class="form-group">
-                    <label style="color: white;font-size: 20px;font-weight: bold">Оцени:</label>
-                <input class="form-control" required type="text" id="rate" name="rate">
-                </div>
-                <button class="button" type="submit">Додади Оцена</button>
-            </form>
-            </th:block>
-        </div>
-    <div class="slika">
-        <img th:src="@{${film.getUrl()}}"/>
-    </div>
-
-</div>
-</div>
Index: c/main/resources/templates/filmReport.html
===================================================================
--- src/main/resources/templates/filmReport.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="UTF-8">
-  <title>$Title$</title>
-</head>
-<body>
-$END$
-</body>
-</html>
Index: c/main/resources/templates/films.html
===================================================================
--- src/main/resources/templates/films.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,266 +1,0 @@
-<style xmlns:sec="http://www.w3.org/1999/xhtml">
-    @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
-
-
-    *{
-        font-family: 'Poppins', sans-serif;
-    }
-
-
-    .container{
-        display: contents;
-        margin: 10%;
-    }
-
-    .container .card{
-        position: relative;
-        width: 250px;
-        height: 300px;
-        background: #232323;
-        border-radius: 20px;
-        overflow: hidden;
-    }
-
-    .container .card:before{
-        content: '';
-        position: absolute;
-        top: 0;
-        left: 0;
-        width: 100%;
-        height: 100%;
-        background: black;
-        transition: 0.5s ease-in-out;
-    }
-
-
-    .container .card:after{
-        position: absolute;
-
-        font-size: 6em;
-        font-weight: 600;
-        font-style: italic;
-        color: rgba(255,255,25,0.05)
-    }
-
-    .container .card .imgBx{
-        position: absolute;
-        width: 100%;
-        height: 300px;
-        transition: 0.5s;
-    }
-
-    .container .card:hover .imgBx{
-        top: 0%;
-
-    }
-
-    .container .card .imgBx img{
-        position: absolute;
-        width: 100%;
-    }
-
-    .container .card .contentBx{
-        position: absolute;
-        bottom: 0;
-        width: 100%;
-        height: 300px;
-        text-align: center;
-        transition: 1s;
-        z-index: 10;
-    }
-
-    .container .card:hover .contentBx{
-        height: 300px;
-    }
-
-    .container .card .contentBx h2{
-        position: relative;
-        font-weight: 300;
-        letter-spacing: 1px;
-        color: #fff;
-        margin: 0;
-    }
-
-    .container .card .contentBx .size, .container .card .contentBx .color, .container .card .contentBx .button {
-        display: flex;
-        justify-content: start;
-        align-items: start;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-
-    .container .card .contentBx .button {
-        display: flex;
-        justify-content: center;
-        align-items: center;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-    .container .card:hover .contentBx .size{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-    .container .card:hover .contentBx .button{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-
-    .container .card:hover .contentBx .color{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.6s;
-    }
-
-    .container .card .contentBx .size h3, .container .card .contentBx .color h3{
-        color: #fff;
-        font-weight: 600;
-        font-size: 8px;
-        text-transform: uppercase;
-        letter-spacing: 2px;
-        margin-right: 10px;
-    }
-
-    .container .card .contentBx .size span{
-        width: 26px;
-        height: 26px;
-        text-align: center;
-        line-height: 26px;
-        font-size: 8px;
-        display: inline-block;
-        color: #111;
-        background: #fff;
-        margin: 0 5px;
-        transition: 0.5s;
-        color: #111;
-        border-radius: 4px;
-        cursor: pointer;
-    }
-
-
-
-    .container .card .contentBx .color span{
-        width: 100%;
-        height: 20px;
-        color: white;
-        margin: 0 5px;
-        cursor: pointer;
-    }
-
-
-    .container .card .contentBx a{
-        display: inline-block;
-        padding: 10px 20px;
-        background: #fff;
-        border-radius: 4px;
-        margin-top: 10px;
-        text-decoration: none;
-        font-weight: 600;
-        color: #111;
-        opacity: 0;
-        transform: translateY(50px);
-        transition: 0.5s;
-        margin-top: 0;
-    }
-
-    .container .card:hover .contentBx a{
-        opacity: 1;
-        transition-delay: 0.75s;
-
-    }
-    .main{
-        margin-top: 100px;
-        display: flex;
-        flex-wrap: wrap;
-        align-items: flex-start;
-        justify-content: space-around;
-    }
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-
-</style>
-<div>
-    <form style="margin-left: 20px" th:action="@{'/home/films'}"
-        th:method="GET">
-<div class="row">
-
-    <div class="form-group col-2">
-        <label style="color: white;font-size: 20px;font-weight: bold">Избери Кино:</label>
-        <select name="id_cinema" class="form-control" id="id_cinema">
-            <option th:value="${null}" text="Please Select"></option>
-            <option
-                    th:each="cinema : ${cinemas}"
-                    th:value="${cinema.getId_cinema()}"
-                    th:text="${cinema.getName()}">
-            </option>
-        </select>
-
-    </div>
-        <div class="form-group col-2">
-            <label style="color: white;font-size: 20px;font-weight: bold">Избери Жанр:</label>
-            <select name="id_genre" class="form-control" id="id_genre">
-                <option th:value="${null}" text="Please Select"></option>
-                <option
-                        th:each="genre : ${genres}"
-                        th:value="${genre.ordinal}"
-                        th:text="${genre.name}">
-                </option>
-            </select>
-
-        </div>
-    <div class="col-8 mt-4">
-        <button class="button" type="submit">Филтрирај</button>
-
-    </div>
-</div>
-    </form>
-
-<div xmlns:th="http://www.thymeleaf.org">
-    <div class="main" style="width: available;height: available;padding: 5%">
-        <div    th:if="${films.isEmpty()} == false"
-                th:each="film : ${films}" class="container">
-            <div class="card" style="margin-left: 2%;margin-bottom: 2%">
-                <div class="imgBx">
-                    <img th:src="@{${film.getUrl()}}"/>
-                </div>
-                <div class="contentBx">
-                    <h2  th:if="${films.isEmpty()} == false"
-                            th:text="${film.getName()}"></h2>
-                    <div class="color">
-                        <h3>Start Date:</h3>
-                        <span th:if="${films.isEmpty()} == false"
-                                th:text="${film.getStart_date()}"></span>
-                    </div>
-                    <form th:if="${films.isEmpty()} == false"
-                            th:action="@{'/home/getFilm/{id}' (id=${film.getId_film()})}"
-                          th:method="GET">
-                        <button class="button" type="submit">Детали</button>
-                    </form>
-
-
-                </div>
-            </div>
-            </div>
-    </div>
-</div>
-</div>
Index: c/main/resources/templates/fragments/footer.html
===================================================================
--- src/main/resources/templates/fragments/footer.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,46 +1,0 @@
-<footer class="text-white-50 mt-xl-5" xmlns:th="http://www.thymeleaf.org">
-    <div class="container">
-        <div class="row">
-            <div class="col-md-3 col-lg-4 col-xl-3">
-                <h5>About</h5>
-                <hr class="bg-white mb-2 mt-0 d-inline-block mx-auto w-25">
-                <p class="mb-0">
-                   MovieZone
-                </p>
-            </div>
-
-            <div class="col-md-2 col-lg-2 col-xl-2 mx-auto">
-                <h5>Informations</h5>
-                <hr class="bg-white mb-2 mt-0 d-inline-block mx-auto w-25">
-                <ul class="list-unstyled">
-                    <li><a href="">Link 1</a></li>
-                    <li><a href="">Link 2</a></li>
-                    <li><a href="">Link 3</a></li>
-                    <li><a href="">Link 4</a></li>
-                </ul>
-            </div>
-
-            <div class="col-md-3 col-lg-2 col-xl-2 mx-auto">
-                <h5>Others links</h5>
-                <hr class="bg-white mb-2 mt-0 d-inline-block mx-auto w-25">
-                <ul class="list-unstyled">
-                    <li><a href="">Link 1</a></li>
-                    <li><a href="">Link 2</a></li>
-                    <li><a href="">Link 3</a></li>
-                    <li><a href="">Link 4</a></li>
-                </ul>
-            </div>
-
-            <div class="col-md-4 col-lg-3 col-xl-3">
-                <h5>Contact</h5>
-                <hr class="bg-white mb-2 mt-0 d-inline-block mx-auto w-25">
-                <ul class="list-unstyled">
-                    <li><i class="fa fa-home mr-2"></i> MovieZone</li>
-                    <li><i class="fa fa-envelope mr-2"></i> moviezone@yahoo.com</li>
-                    <li><i class="fa fa-phone mr-2"></i> + 33 12 14 15 16</li>
-                    <li><i class="fa fa-print mr-2"></i> + 33 12 14 15 16</li>
-                </ul>
-            </div>
-        </div>
-    </div>
-</footer>
Index: c/main/resources/templates/fragments/header.html
===================================================================
--- src/main/resources/templates/fragments/header.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,124 +1,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <title>Title</title>
-</head>
-<style>
-    @import url("https://fonts.googleapis.com/css?family=Varela+Round");
-    html {
-        box-sizing: border-box;
-    }
-
-    *,
-    *:before,
-    *:after {
-        box-sizing: inherit;
-        padding: 0;
-        margin: 0;
-        letter-spacing: 1.1px;
-    }
-
-    body,
-    html {
-
-        height: 10%;
-        background: #1c1d22;
-        font-family: "Varela Round", sans-serif;
-    }
-
-    .menu {
-        width: 100%;
-        display: flex;
-        justify-content: space-between;
-        /*height: 100vh;*/
-
-    }
-
-    .menu ul li{
-        width: 150px;
-        height: 50px;
-        transition: background-position-x 0.9s linear;
-        text-align: center;
-        list-style: none;
-    }
-    .menu ul li a {
-        font-size: 22px;
-        color: #777;
-        text-decoration: none;
-        transition: all 0.45s;
-    }
-    .menu-left{
-        display: flex;
-    }
-    .menu-right{
-        display: flex;
-    }
-
-</style>
-<body>
-<div style="width: 100%">
-<nav class="menu" xmlns:sec="http://www.w3.org/1999/xhtml">
-    <ul class="menu-left">
-        <li class="begin"><a href="/home">MovieZone</a></li>
-        <li class="begin"><a href="/films">Филмови</a></li>
-        <li class="begin"><a href="/projections">Програма</a></li>
-        <li class="begin"><a href="/events">Настани</a></li>
-<!--        <li class="begin"><a href="#!">Faq</a></li>-->
-        <th:block sec:authorize="hasAuthority('ROLE_USER')">
-            <li class="begin"><a href="/myTickets">Мои Карти</a></li>
-        </th:block>
-
-        <th:block sec:authorize="hasAuthority('ROLE_ADMIN')" th:if="${#request.getRemoteUser()}">
-            <li class="nav-item dropdown" style="width: 20px">
-                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="padding: 0">
-                </a>
-                <div class="dropdown-menu" aria-labelledby="navbarDropdown">
-                    <a class="dropdown-item" href="/workers">Вработени</a>
-                    <a class="dropdown-item" href="/addProjection">Нова Проекција</a>
-                    <a class="dropdown-item" href="/addFilm">Нов Филм</a>
-                    <a class="dropdown-item" href="/addEvent">Нов Настан</a>
-                    <a class="dropdown-item" href="/addDiscount">Нов Попуст</a>
-                </div>
-            </li>
-        </th:block>
-    </ul>
-    <ul class="menu-right">
-        <th:block sec:authorize="hasAuthority('ROLE_ADMIN')" th:if="${#request.getRemoteUser() != null}">
-            <li class="reg">
-                <a href="/profileWorker">
-                    <th:block th:text="${#request.getRemoteUser()}"></th:block>
-                </a>
-            </li>
-        </th:block>
-        <th:block sec:authorize="hasAuthority('ROLE_WORKER')" th:if="${#request.getRemoteUser() != null}">
-            <li class="reg">
-                <a href="/profileWorker">
-                    <th:block th:text="${#request.getRemoteUser()}"></th:block>
-                </a>
-            </li>
-        </th:block>
-        <th:block sec:authorize="hasAuthority('ROLE_USER')" th:if="${#request.getRemoteUser() != null}">
-            <li class="reg">
-                <a href="/profileUser">
-                    <th:block th:text="${#request.getRemoteUser()}"></th:block>
-                </a>
-            </li>
-        </th:block>
-        <th:block th:if="${#request.getRemoteUser() == null}">
-            <li class="reg"><a href="/register">Регистрација</a></li>
-        </th:block>
-        <th:block th:if="${#request.getRemoteUser() != null}">
-            <li class="reg" sec:authorize="isAuthenticated()">
-                <a  href="/logout">
-                    Одјави се
-                </a>
-            </li>
-        </th:block>
-        <th:block th:if="${#request.getRemoteUser() == null}">
-            <li class="reg"><a href="/login">Најава</a></li>
-        </th:block>
-    </ul>
-</nav></div>
-</body>
-</html>
Index: c/main/resources/templates/home.html
===================================================================
--- src/main/resources/templates/home.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,251 +1,0 @@
-<style xmlns:sec="http://www.w3.org/1999/xhtml">
-    @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
-
-
-    *{
-        font-family: 'Poppins', sans-serif;
-    }
-
-
-    .container{
-
-        position: relative;
-    }
-
-    .container .card{
-        position: relative;
-        width: 250px;
-        height: 300px;
-        background: #232323;
-        border-radius: 20px;
-        overflow: hidden;
-    }
-
-    .container .card:before{
-        content: '';
-        position: absolute;
-        top: 0;
-        left: 0;
-        width: 100%;
-        height: 100%;
-        background: black;
-        transition: 0.5s ease-in-out;
-    }
-
-
-    .container .card:after{
-        position: absolute;
-
-        font-size: 6em;
-        font-weight: 600;
-        font-style: italic;
-        color: rgba(255,255,25,0.05)
-    }
-
-    .container .card .imgBx{
-        position: absolute;
-        width: 100%;
-        height: 300px;
-        transition: 0.5s;
-    }
-
-    .container .card:hover .imgBx{
-        top: 0%;
-
-    }
-
-    .container .card .imgBx img{
-        position: absolute;
-        width: 100%;
-    }
-
-    .container .card .contentBx{
-        position: absolute;
-        bottom: 0;
-        width: 100%;
-        height: 300px;
-        text-align: center;
-        transition: 1s;
-        z-index: 10;
-    }
-
-    .container .card:hover .contentBx{
-        height: 300px;
-    }
-
-    .container .card .contentBx h2{
-        position: relative;
-        font-weight: 300;
-        letter-spacing: 1px;
-        color: #fff;
-        margin: 0;
-    }
-
-    .container .card .contentBx .size, .container .card .contentBx .color, .container .card .contentBx .button {
-        display: flex;
-        justify-content: start;
-        align-items: start;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-
-    .container .card .contentBx .button {
-        display: flex;
-        justify-content: center;
-        align-items: center;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-    .container .card:hover .contentBx .size{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-    .container .card:hover .contentBx .button{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-
-    .container .card:hover .contentBx .color{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.6s;
-    }
-
-    .container .card .contentBx .size h3, .container .card .contentBx .color h3{
-        color: #fff;
-        font-weight: 600;
-        font-size: 8px;
-        text-transform: uppercase;
-        letter-spacing: 2px;
-        margin-right: 10px;
-    }
-
-    .container .card .contentBx .size span{
-        width: 26px;
-        height: 26px;
-        text-align: center;
-        line-height: 26px;
-        font-size: 8px;
-        display: inline-block;
-        color: #111;
-        background: #fff;
-        margin: 0 5px;
-        transition: 0.5s;
-        color: #111;
-        border-radius: 4px;
-        cursor: pointer;
-    }
-
-
-
-    .container .card .contentBx .color span{
-        width: 100%;
-        height: 20px;
-        color: white;
-        margin: 0 5px;
-        cursor: pointer;
-    }
-
-
-    .container .card .contentBx a{
-        display: inline-block;
-        padding: 10px 20px;
-        background: #fff;
-        border-radius: 4px;
-        margin-top: 10px;
-        text-decoration: none;
-        font-weight: 600;
-        color: #111;
-        opacity: 0;
-        transform: translateY(50px);
-        transition: 0.5s;
-        margin-top: 0;
-    }
-
-    .container .card:hover .contentBx a{
-        opacity: 1;
-        transition-delay: 0.75s;
-
-    }
-    .main{
-        margin-top: 100px;
-        display: flex;
-        align-items: flex-start;
-        justify-content: flex-start;
-    }
-    .button {
-        top:250px;
-        background-color: white;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-</style>
-<div xmlns:th="http://www.thymeleaf.org">
-    <h1 style="color: white">Нови Филмови</h1>
-<div class="main">
-<div th:each="film : ${films}" class="container">
-    <div class="card">
-        <div class="imgBx">
-            <img th:src="@{${film.getUrl()}}"/>
-        </div>
-        <div class="contentBx">
-            <h2  th:text="${film.getName()}"></h2>
-            <div class="size">
-                <h3>Duration :</h3>
-                <span th:text="${film.getDuration()}"></span>
-            </div>
-            <div class="color">
-                <h3>Genre:</h3>
-                <span th:text="${film.getGenre()}"></span>
-            </div>
-            <form th:action="@{'/home/getFilm/{id}' (id=${film.getId_film()})}"
-                  th:method="GET">
-                <button class="button" type="submit">Детали</button>
-            </form>
-
-
-        </div>
-    </div>
-</div>
-
-</div>
-    <h1 style="color: white">Следни Настани:</h1>
-    <div class="main">
-    <div th:each="event: ${events}" class="container">
-    <div class="card">
-        <div class="imgBx">
-            <img th:src="@{${event.getImg_url()}}"/>
-        </div>
-        <div class="contentBx">
-            <h2  th:text="${event.getTheme()}"></h2>
-            <div class="size">
-                <h3>Start Date :</h3>
-                <span th:text="${event.getStart_date()}"></span>
-            </div>
-            <div class="color">
-                <h3>Duration:</h3>
-                <span th:text="${event.getDuration()}"></span>
-            </div>
-            <form th:action="@{'/home/getFilm/{id}' (id=${event.getId_event()})}"
-                  th:method="GET">
-                <button class="button" type="submit">Детали</button>
-            </form>
-        </div>
-    </div>
-</div>
-</div>
-</div>
Index: c/main/resources/templates/login.html
===================================================================
--- src/main/resources/templates/login.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,25 +1,0 @@
-<div class="container">
-    <h1 th:if="${hasError}" th:text="${error}"></h1>
-</div>
-<div>
-    <form th:method="POST" th:action="@{/login}">
-        <div class="container">
-            <form class="form-signin mt-xl-5" method="post" action="/login">
-                <h2 class="form-signin-heading" style="color: white">Најава</h2>
-                <p>
-                    <label for="username" class="sr-only">Корисничко име</label>
-                    <input type="text" id="username" name="username" class="form-control" placeholder="Корисничко име" required="" autofocus=""/>
-                </p>
-                <p>
-                    <label for="password" class="sr-only">Лозинка</label>
-                    <input type="password" id="password" name="password" class="form-control" placeholder="Лозинка" required=""/>
-                </p>
-            </form>
-            <button id="submit" style="background-color: #ff5019;border-color: #ff5019" class="btn btn-lg btn-block" type="submit">Најави се</button>
-        </div>
-        <div style="display: flex;justify-content: center;align-content: center">
-        <a href="/register" class="btn btn-block btn-light" style="margin-top: 20px;width: 400px">Регистрирај се тука!</a>
-        </div>
-    </form>
-
-</div>
Index: c/main/resources/templates/master-template.html
===================================================================
--- src/main/resources/templates/master-template.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,23 +1,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
-<head>
-    <meta charset="UTF-8"/>
-
-    <title>MovieZone</title>
-
-    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
-    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
-    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
-    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
-</head>
-<body>
-<header th:replace="fragments/header"/>
-
-<section th:include="${bodyContent}">
-
-</section>
-
-<footer th:replace="fragments/footer"/>
-
-</body>
-</html>
Index: c/main/resources/templates/monthlyCinemaReport.html
===================================================================
--- src/main/resources/templates/monthlyCinemaReport.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="UTF-8">
-  <title>$Title$</title>
-</head>
-<body>
-$END$
-</body>
-</html>
Index: c/main/resources/templates/myTickets.html
===================================================================
--- src/main/resources/templates/myTickets.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,64 +1,0 @@
-<style>
-    .card-horizontal {
-        display: flex;
-        flex: 1 1 auto;
-    }
-    .card {
-        transition: all .2s ease-in-out;
-    }
-    .card:hover {
-        transform: scale(1.05);
-    }
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-</style>
-<div style="border-radius:30px" >
-    <div class="row">
-        <div class="col-12 mt-3" style="padding-left:100px;height:75%;">
-            <div class="card" th:each="t : ${tickets}" style=" border-radius: 30px;width:92%;align-self:center; margin-bottom: 5%">
-                <div class="card-horizontal" >
-                    <div class="card-body">
-
-                        <h4 class="card-title" >
-                            <div>
-                                <span>Филм:</span>
-                                <span th:text="${t.ticket.projection.film.name}"></span></div>
-                            <div>
-                                <span>Почеток на проекција: </span>
-                                <span th:text="${t.ticket.projection.date_time_start}"></span></div>
-                            <div>
-                                <span>Крај на проекција: </span>
-                                <span th:text="${t.ticket.projection.date_time_end}"></span></div>
-                        </h4>
-
-                        <p class="card-text" th:text="${t.ticket.projection.type_of_technology}"></p>
-                        <span>Број на седиште: </span><p class="card-text" th:text="${t.ticket.seat.seat_number}"></p>
-                        <span>Цена: </span><p class="card-text" th:text="${t.ticket.price}"></p>
-                    </div>
-                </div>
-                <div class="card-footer" style="border-bottom-right-radius:30px;border-bottom-left-radius:30px">
-                    <small>
-                        <form th:action="@{'/cancelTicket/{id}' (id=${t.ticket.id_ticket})}"
-                              th:method="POST">
-                            <button th:if="${t.canCancel}" class="button" type="submit">Откажи</button>
-                        </form>
-
-                    </small>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
Index: c/main/resources/templates/profileUser.html
===================================================================
--- src/main/resources/templates/profileUser.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,237 +1,0 @@
-<style xmlns:sec="http://www.w3.org/1999/xhtml">
-    @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
-
-
-    *{
-        font-family: 'Poppins', sans-serif;
-    }
-
-
-    .container{
-
-        position: relative;
-    }
-
-    .container .card{
-        position: relative;
-        width: 250px;
-        height: 300px;
-        background: #232323;
-        border-radius: 20px;
-        overflow: hidden;
-    }
-
-    .container .card:before{
-        content: '';
-        position: absolute;
-        top: 0;
-        left: 0;
-        width: 100%;
-        height: 100%;
-        background: black;
-        transition: 0.5s ease-in-out;
-    }
-
-
-    .container .card:after{
-        position: absolute;
-
-        font-size: 6em;
-        font-weight: 600;
-        font-style: italic;
-        color: rgba(255,255,25,0.05)
-    }
-
-    .container .card .imgBx{
-        position: absolute;
-        width: 100%;
-        height: 300px;
-        transition: 0.5s;
-    }
-
-    .container .card:hover .imgBx{
-        top: 0%;
-
-    }
-
-    .container .card .imgBx img{
-        position: absolute;
-        width: 100%;
-    }
-
-    .container .card .contentBx{
-        position: absolute;
-        bottom: 0;
-        width: 100%;
-        height: 300px;
-        text-align: center;
-        transition: 1s;
-        z-index: 10;
-    }
-
-    .container .card:hover .contentBx{
-        height: 300px;
-    }
-
-    .container .card .contentBx h2{
-        position: relative;
-        font-weight: 300;
-        letter-spacing: 1px;
-        color: #fff;
-        margin: 0;
-    }
-
-    .container .card .contentBx .size, .container .card .contentBx .color, .container .card .contentBx .button {
-        display: flex;
-        justify-content: start;
-        align-items: start;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-
-    .container .card .contentBx .button {
-        display: flex;
-        justify-content: center;
-        align-items: center;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-    .container .card:hover .contentBx .size{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-    .container .card:hover .contentBx .button{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-
-    .container .card:hover .contentBx .color{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.6s;
-    }
-
-    .container .card .contentBx .size h3, .container .card .contentBx .color h3{
-        color: #fff;
-        font-weight: 600;
-        font-size: 8px;
-        text-transform: uppercase;
-        letter-spacing: 2px;
-        margin-right: 10px;
-    }
-
-    .container .card .contentBx .size span{
-        width: 26px;
-        height: 26px;
-        text-align: center;
-        line-height: 26px;
-        font-size: 8px;
-        display: inline-block;
-        color: #111;
-        background: #fff;
-        margin: 0 5px;
-        transition: 0.5s;
-        color: #111;
-        border-radius: 4px;
-        cursor: pointer;
-    }
-
-
-
-    .container .card .contentBx .color span{
-        width: 100%;
-        height: 20px;
-        color: white;
-        margin: 0 5px;
-        cursor: pointer;
-    }
-
-
-    .container .card .contentBx a{
-        display: inline-block;
-        padding: 10px 20px;
-        background: #fff;
-        border-radius: 4px;
-        margin-top: 10px;
-        text-decoration: none;
-        font-weight: 600;
-        color: #111;
-        opacity: 0;
-        transform: translateY(50px);
-        transition: 0.5s;
-        margin-top: 0;
-    }
-
-    .container .card:hover .contentBx a{
-        opacity: 1;
-        transition-delay: 0.75s;
-
-    }
-    .main{
-        margin-top: 100px;
-        display: flex;
-        align-items: flex-start;
-        justify-content: flex-start;
-    }
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-</style>
-<div class="container-1">
-    <h1 style="color: white; font-weight: 600" class="name" th:text="${customer.first_name}+' '+${customer.last_name}">
-    </h1>
-    <h4 style="color: white;"> Адреса:
-        <span th:text="${customer.address}"></span>
-    </h4>
-    <h4 style="color: white"> Број:
-        <span th:text="${customer.contact_number}"></span>
-    </h4>
-    <h4 style="color: white"> Датум на креирање профил:
-        <span th:text="${customer.date_created}"></span>
-    </h4>
-</div>
-<div xmlns:th="http://www.thymeleaf.org">
-    <h1 style="color: white">Мои Настани</h1>
-    <div class="main">
-        <div th:each="event : ${events}" class="container">
-            <div class="card">
-                <div class="imgBx">
-                    <img th:src="@{${event.img_url}}"/>
-                </div>
-                <div class="contentBx">
-                    <h2  th:text="${event.theme}"></h2>
-                    <div class="size">
-                        <h3>Duration :</h3>
-                        <span th:text="${event.getDuration()}"></span>
-                    </div>
-                    <form th:action="@{'/home/deleteInterestedEvent/{id}' (id=${event.getId_event()})}"
-                          th:method="POST">
-                        <button class="button" type="submit">Избриши од заинтересирани</button>
-                    </form>
-                </div>
-
-            </div>
-        </div>
-    </div>
-</div>
-</div>
Index: c/main/resources/templates/profileWorker.html
===================================================================
--- src/main/resources/templates/profileWorker.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,19 +1,0 @@
-<div class="container-1">
-    <h1 style="color: white; font-weight: 600" class="name" th:text="${worker.first_name}+' '+${worker.last_name}">
-    </h1>
-    <h4 style="color: white;"> Адреса:
-        <span th:text="${worker.address}"></span>
-    </h4>
-    <h4 style="color: white"> Број:
-        <span th:text="${worker.contact_number}"></span>
-    </h4>
-    <h4 style="color: white"> Датум на креирање профил:
-        <span th:text="${worker.date_created}"></span>
-    </h4>
-    <h4 style="color: white"> Позиција:
-        <span th:text="${worker.position}"></span>
-    </h4>
-    <h4 style="color: white"> Работи во кино:
-        <span th:text="${worker.cinema.name}"></span>
-    </h4>
-</div>
Index: c/main/resources/templates/projectionDetails.html
===================================================================
--- src/main/resources/templates/projectionDetails.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,10 +1,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <title>Title</title>
-</head>
-<body>
-
-</body>
-</html>
Index: c/main/resources/templates/projections.html
===================================================================
--- src/main/resources/templates/projections.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,254 +1,0 @@
-<style xmlns:sec="http://www.w3.org/1999/xhtml">
-    @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
-
-
-    *{
-        font-family: 'Poppins', sans-serif;
-    }
-
-
-    .container{
-        display: contents;
-        margin: 5%;
-    }
-
-    .container .card{
-        position: relative;
-        width: 250px;
-        height: 300px;
-        background: #232323;
-        border-radius: 20px;
-        overflow: hidden;
-    }
-
-    .container .card:before{
-        content: '';
-        position: absolute;
-        top: 0;
-        left: 0;
-        width: 100%;
-        height: 100%;
-        background: black;
-        transition: 0.5s ease-in-out;
-    }
-
-
-    .container .card:after{
-        position: absolute;
-
-        font-size: 6em;
-        font-weight: 600;
-        font-style: italic;
-        color: rgba(255,255,25,0.05)
-    }
-
-    .container .card .imgBx{
-        position: absolute;
-        width: 100%;
-        height: 300px;
-        transition: 0.5s;
-    }
-
-    .container .card:hover .imgBx{
-        top: 0%;
-
-    }
-
-    .container .card .imgBx img{
-        position: absolute;
-        width: 100%;
-    }
-
-    .container .card .contentBx{
-        position: absolute;
-        bottom: 0;
-        width: 100%;
-        height: 300px;
-        text-align: center;
-        transition: 1s;
-        z-index: 10;
-    }
-
-    .container .card:hover .contentBx{
-        height: 300px;
-    }
-
-    .container .card .contentBx h2{
-        position: relative;
-        font-weight: 300;
-        letter-spacing: 1px;
-        color: #fff;
-        margin: 0;
-    }
-
-    .container .card .contentBx .size, .container .card .contentBx .color, .container .card .contentBx .button {
-        display: flex;
-        justify-content: start;
-        align-items: start;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-
-    .container .card .contentBx .button {
-        display: flex;
-        justify-content: center;
-        align-items: center;
-        padding: 8px 20px;
-        transition: 0.5s;opacity: 0;
-        visibility: hidden;
-        padding-top: 0;
-        padding-bottom: 0;
-    }
-    .container .card:hover .contentBx .size{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-    .container .card:hover .contentBx .button{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.5s;
-    }
-
-    .container .card:hover .contentBx .color{
-        opacity: 1;
-        visibility: visible;
-        transition-delay: 0.6s;
-    }
-
-    .container .card .contentBx .size h3, .container .card .contentBx .color h3{
-        color: #fff;
-        font-weight: 600;
-        font-size: 8px;
-        text-transform: uppercase;
-        letter-spacing: 2px;
-        margin-right: 10px;
-    }
-
-    .container .card .contentBx .size span{
-        width: 26px;
-        height: 26px;
-        text-align: center;
-        line-height: 26px;
-        font-size: 8px;
-        display: inline-block;
-        color: #111;
-        background: #fff;
-        margin: 0 5px;
-        transition: 0.5s;
-        color: #111;
-        border-radius: 4px;
-        cursor: pointer;
-    }
-
-
-
-    .container .card .contentBx .color span{
-        width: 100%;
-        height: 20px;
-        color: white;
-        margin: 0 5px;
-        cursor: pointer;
-    }
-
-
-    .container .card .contentBx a{
-        display: inline-block;
-        padding: 10px 20px;
-        background: #fff;
-        border-radius: 4px;
-        margin-top: 10px;
-        text-decoration: none;
-        font-weight: 600;
-        color: #111;
-        opacity: 0;
-        transform: translateY(50px);
-        transition: 0.5s;
-        margin-top: 0;
-    }
-
-    .container .card:hover .contentBx a{
-        opacity: 1;
-        transition-delay: 0.75s;
-
-    }
-    .main{
-        margin-top: 100px;
-        display: flex;
-        flex-wrap: wrap;
-        align-items: flex-start;
-        justify-content: space-around;
-    }
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-</style>
-<div>
-    <form style="margin-left: 20px" th:action="@{'/home/projections'}"
-          th:method="GET">
-<div class="row">
-
-        <div class="form-group col-2">
-            <label style="color: white;font-size: 20px;font-weight: bold">Избери Кино:</label>
-            <select name="id_cinema" class="form-control" id="id_cinema">
-                <option th:value="${null}" text="Please Select"></option>
-                <option
-                        th:each="cinema : ${cinemas}"
-                        th:value="${cinema.getId_cinema()}"
-                        th:text="${cinema.getName()}">
-                </option>
-            </select>
-
-        </div>
-    <div class="col-10 mt-4">
-        <button class="button" type="submit">Филтрирај</button>
-    </div>
-
-</div>
-
-    </form>
-<div xmlns:th="http://www.thymeleaf.org">
-    <div class="main">
-
-
-        <div th:each="film: ${films}" class="container">
-            <div class="card">
-                <div class="imgBx">
-                    <img th:src="@{${film.getUrl()}}"/>
-                </div>
-                <div class="contentBx">
-                    <h2  th:text="${film.getName()}"></h2>
-                    <div class="size">
-                        <h3>Duration :</h3>
-                        <span th:text="${film.getDuration()}"></span>
-                    </div>
-                    <div class="color">
-                        <h3>Genre:</h3>
-                        <span th:text="${film.getGenre()}"></span>
-                    </div>
-                    <form
-                          th:action="@{'/home/getProjections/{id}' (id=${film.getId_film()})}"
-                          th:method="GET">
-                        <button class="button" type="submit">Projections</button>
-                    </form>
-                </div>
-            </div>
-        </div>
-    </div>
-    </div>
-</div>
Index: c/main/resources/templates/projectionsForFilm.html
===================================================================
--- src/main/resources/templates/projectionsForFilm.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,72 +1,0 @@
-<style>
-    .card-horizontal {
-        display: flex;
-        flex: 1 1 auto;
-    }
-    .card {
-        transition: all .2s ease-in-out;
-    }
-    .card:hover {
-        transform: scale(1.05);
-    }
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-</style>
-<h1 style="color: white" th:text="${film.name}"></h1>
-<div style="border-radius:30px" xmlns:sec="http://www.w3.org/1999/xhtml">
-    <div class="row">
-        <div class="col-12 mt-3" style="padding-left:100px;height:75%;">
-            <div class="card" th:each="projection : ${projections}" style=" border-radius: 30px;width:92%;align-self:center">
-                <div class="card-horizontal" >
-                    <div class="card-body">
-
-                        <h4 class="card-title" >
-                            <div>
-                            <span>Почеток на проекција: </span>
-                            <span th:text="${projection.date_time_start}"></span></div>
-                            <div>
-                                <span>Крај на проекција: </span>
-                                <span th:text="${projection.date_time_end}"></span></div>
-                        </h4>
-                        <p class="card-text" th:text="${projection.type_of_technology}"></p>
-                    </div>
-                </div>
-                <div class="card-footer" style="border-bottom-right-radius:30px;border-bottom-left-radius:30px">
-                    <small>
-                        <th:block sec:authorize="hasAuthority('ROLE_USER')" th:if="${#request.getRemoteUser() != null}">
-                        <form th:action="@{'/home/getSeats/{id}' (id=${projection.id_projection})}"
-                              th:method="GET">
-                            <input type="hidden" name="film" id="film" th:value="${film.id_film}">
-                            <div class="form-group">
-                                <label style="color: black;font-size: 20px;font-weight: bold">Категорија на седиште</label>
-                                <select name="id_category" class="form-control" id="id_category">
-                                    <option
-                                            th:each="category : ${categories}"
-                                            th:value="${category.idcategory}"
-                                            th:text="${category.getName()}">
-                                    </option>
-                                </select>
-
-                            </div>
-                            <button class="button" type="submit">Резервирај</button>
-                        </form>
-                        </th:block>
-                    </small>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
Index: c/main/resources/templates/register.html
===================================================================
--- src/main/resources/templates/register.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,54 +1,0 @@
-<div class="container">
-    <h1 th:if="${hasError}" th:text="${error}"></h1>
-</div>
-<div class="container">
-    <form class="form-signin mt-xl-5" method="post" action="/register">
-        <h2 class="form-signin-heading" style="color: white">Регистрација</h2>
-        <p>
-            <label for="username" class="sr-only" style="color: white">Корисничко име</label>
-            <input type="text" id="username" name="username" class="form-control" placeholder="Корисничко име" required=""
-                   autofocus="">
-        </p>
-        <p>
-            <label for="password" class="sr-only" style="color: white">Лозинка</label>
-            <input type="password" id="password" name="password" class="form-control" placeholder="Лозинка"
-                   required="">
-        </p>
-        <p>
-            <label for="repeatedPassword" class="sr-only" style="color: white">Повтори лозинка</label>
-            <input type="password" id="repeatedPassword" name="repeatedPassword" class="form-control"
-                   placeholder="Повтори лозинка" required="">
-        </p>
-        <p>
-            <label for="first_name" class="sr-only" style="color: white">Име</label>
-            <input type="text" id="first_name" name="first_name" class="form-control" placeholder="Име" required="" autofocus="">
-        </p>
-        <p>
-            <label for="last_name" class="sr-only" style="color: white">Презиме</label>
-            <input type="text" id="last_name" name="last_name" class="form-control" placeholder="Презиме" required=""
-                   autofocus="">
-        </p>
-        <p>
-            <label for="last_name" class="sr-only" style="color: white">Е-пошта</label>
-            <input type="text" id="email" name="email" class="form-control" placeholder="Е-пошта" required=""
-                   autofocus="">
-        </p>
-        <p>
-            <label for="number" class="sr-only" style="color: white">Телефонски број</label>
-            <input type="text" id="number" name="number" class="form-control" placeholder="Телефонски број" required=""
-                   autofocus="">
-        </p>
-        <p>
-        <div class="form-check form-check-inline">
-            <input class="form-check-input" name="role" type="radio" id="ROLE_ADMIN" value="ROLE_ADMIN">
-            <label class="form-check-label" for="ROLE_ADMIN" style="color: white">ROLE_ADMIN</label>
-        </div>
-        <div class="form-check form-check-inline">
-            <input class="form-check-input" name="role"  type="radio" id="ROLE_USER" value="ROLE_USER">
-            <label class="form-check-label" for="ROLE_USER" style="color: white">ROLE_USER</label>
-        </div>
-        </p>
-        <button style="background-color: #ff5019;border-color: #ff5019" class="btn btn-lg btn-primary btn-block" type="submit">Регистрирај се</button>
-    </form>
-    <a href="/login" style="margin-top: 20px" class="btn btn-block btn-light">Имаш постоечки профил? Најави се тука</a>
-</div>
Index: c/main/resources/templates/registerWorker.html
===================================================================
--- src/main/resources/templates/registerWorker.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,38 +1,0 @@
-<div class="container">
-  <h1 th:if="${hasError}" th:text="${error}"></h1>
-</div>
-<div class="container">
-  <form class="form-signin mt-xl-5" method="post" action="/finishRegister">
-    <h2 class="form-signin-heading" style="color: white">Избери кино, внеси позиција и работно време</h2>
-
-    <div class="form-group">
-      <label style="color: white;font-size: 20px;font-weight: bold">Избери кинотека</label>
-      <select name="id_cinema" class="form-control" id="id_cinema">
-        <option
-                th:selected="${cinemas.get(1)}"
-                th:each="cinema : ${cinemas}"
-                th:value="${cinema.getId_cinema()}"
-                th:text="${cinema.getName()}">
-        </option>
-      </select>
-
-    </div>
-    <p>
-      <label for="position" class="sr-only" style="color: white">Позиција</label>
-      <input type="text" id="position" name="position" class="form-control" placeholder="Позиција" required=""
-             autofocus="">
-    </p>
-
-    <p>
-      <label for="work_hours_from" class="sr-only" style="color: white">Почеток работно време</label>
-      <input type="text" id="work_hours_from" name="work_hours_from" class="form-control" placeholder="Почеток работно време" required="" autofocus="">
-    </p>
-    <p>
-      <label for="work_hours_to" class="sr-only" style="color: white">Крај работно време</label>
-      <input type="text" id="work_hours_to" name="work_hours_to" class="form-control" placeholder="Крај работно време" required="" autofocus="">
-    </p>
-
-    <button style="background-color: #ff5019;border-color: #ff5019" class="btn btn-lg btn-primary btn-block" type="submit">Регистрирај се</button>
-  </form>
-
-</div>
Index: c/main/resources/templates/seats.html
===================================================================
--- src/main/resources/templates/seats.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,45 +1,0 @@
-<style>
-
-    .button {
-        top:250px;
-        background-color: #ff5019;
-        border: none;
-        color: black;
-        padding: 10px 20px;
-        text-align: center;
-        text-decoration: none;
-        display: inline-block;
-        font-size: 16px;
-        border-radius: 20px;
-    }
-    .form-group{
-        width: 200px;
-    }
-</style>
-
-
-<form th:action="@{'/home/makeReservation'}"
-      th:method="POST">
-    <input type="hidden" name="film" id="film" th:value="${film.id_film}">
-    <input type="hidden" id="projection" name="projection" th:value="${projection.id_projection}">
-    <div class="form-group">
-        <label style="color: white;font-size: 20px;font-weight: bold">Одбери Седиште:</label>
-        <select name="id_seat" class="form-control" id="id_seat">
-            <option
-                    th:each="seat : ${seats}"
-                    th:value="${seat.id_seat}"
-                    th:text="${seat.seat_number}">
-            </option>
-        </select>
-
-    </div>
-    <div class="form-group">
-        <label style="color: white" for="discount">Код за попуст</label>
-        <input type="text"
-               class="form-control"
-               id="discount"
-               name="discount"
-               placeholder="Внеси код за попуст">
-    </div>
-    <button class="button" type="submit">Резервирај</button>
-</form>
Index: c/main/resources/templates/workers.html
===================================================================
--- src/main/resources/templates/workers.html	(revision 608fba87057dd7f8ba761c4d191ba44774d5a38d)
+++ 	(revision )
@@ -1,29 +1,0 @@
-<div xmlns:th="http://www.thymeleaf.org">
-  <h1 style="color: white">Вработени</h1>
-  <div style="color: white" class="container mb-4">
-    <div class="row">
-      <div class="col-12" >
-        <div style="color: white" class="table-responsive">
-          <table style="color: white" class="table table-striped">
-            <thead>
-            <tr>
-              <th scope="col">Име</th>
-              <th scope="col">Презиме</th>
-              <th scope="col">Работна Позиција</th>
-
-            </tr>
-            </thead>
-            <tbody>
-            <tr th:each="w : ${workers}" class="workers">
-              <td th:text="${w.first_name}"></td>
-              <td th:text="${w.last_name}"></td>
-              <td th:text="${w.position}"></td>
-            </tr>
-            </tbody>
-          </table>
-        </div>
-      </div>
-
-    </div>
-  </div>
-</div>
