Changeset 2269653


Ignore:
Timestamp:
02/04/23 01:47:15 (23 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
adf250d
Parents:
eb226b2
Message:

First Run No error

Files:
21 edited

Legend:

Unmodified
Added
Removed
  • pom.xml

    reb226b2 r2269653  
    66        <groupId>org.springframework.boot</groupId>
    77        <artifactId>spring-boot-starter-parent</artifactId>
    8         <version>3.0.2</version>
     8        <version>2.7.4</version>
    99        <relativePath/> <!-- lookup parent from repository -->
    1010    </parent>
     
    1515    <description>MovieZone</description>
    1616    <properties>
    17         <java.version>17</java.version>
     17        <java.version>17.0.5</java.version>
     18        <spring-security.version>5.6.1</spring-security.version>
    1819    </properties>
    19 
    2020    <dependencies>
    2121        <dependency>
    2222            <groupId>org.springframework.boot</groupId>
    2323            <artifactId>spring-boot-starter-data-jpa</artifactId>
     24        </dependency>
     25        <dependency>
     26            <groupId>org.thymeleaf.extras</groupId>
     27            <artifactId>thymeleaf-extras-springsecurity5</artifactId>
    2428        </dependency>
    2529        <dependency>
     
    3741            <scope>provided</scope>
    3842        </dependency>
    39         <dependency>
    40             <groupId>org.thymeleaf.extras</groupId>
    41             <artifactId>thymeleaf-extras-springsecurity5</artifactId>
    42             <version>3.0.4.RELEASE</version>
    43         </dependency>
     43
    4444
    4545        <dependency>
     
    6363            <groupId>org.springframework.boot</groupId>
    6464            <artifactId>spring-boot-starter-security</artifactId>
    65         </dependency>
    66         <dependency>
    67             <groupId>org.springframework.security</groupId>
    68             <artifactId>spring-security-config</artifactId>
    69             <version>3.2.0.RELEASE</version>
    7065        </dependency>
    7166    </dependencies>
  • src/main/java/com/example/moviezone/config/WebSecurityConfig.java

    reb226b2 r2269653  
    99import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
    1010import org.springframework.security.crypto.password.PasswordEncoder;
     11import org.springframework.web.servlet.config.annotation.EnableWebMvc;
    1112
    1213
    1314@Configuration
    1415@EnableWebSecurity
     16@EnableWebMvc
    1517@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true)
    1618public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
     
    4244                .logout()
    4345                .logoutUrl("/logout")
     46                .clearAuthentication(true)
    4447                .invalidateHttpSession(true)
    4548                .deleteCookies("JSESSIONID")
  • src/main/java/com/example/moviezone/model/Category.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
    43import lombok.Getter;
    54import lombok.Setter;
    65import lombok.ToString;
     6import org.springframework.security.core.GrantedAuthority;
     7import org.springframework.security.core.userdetails.UserDetails;
     8
     9import javax.management.relation.Role;
     10import javax.persistence.*;
     11import java.time.LocalDate;
     12import java.time.LocalDateTime;
     13import java.util.Collection;
     14
    715
    816import java.util.Objects;
  • src/main/java/com/example/moviezone/model/Cinema.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
    43import lombok.Getter;
    54import lombok.Setter;
    65import lombok.ToString;
     6
     7import javax.persistence.*;
     8
    79
    810@Entity
  • src/main/java/com/example/moviezone/model/Customer.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.Entity;
    4 import jakarta.persistence.PrimaryKeyJoinColumn;
    5 import jakarta.persistence.Table;
    63import lombok.Getter;
    74import lombok.Setter;
    85import lombok.ToString;
     6import org.hibernate.Hibernate;
    97import org.springframework.security.core.GrantedAuthority;
    108
     9import javax.persistence.Entity;
     10import javax.persistence.PrimaryKeyJoinColumn;
     11import javax.persistence.Table;
     12import java.time.LocalDate;
    1113import java.util.Collection;
    1214import java.util.Collections;
    13 
     15import java.util.Objects;
    1416@Entity
    1517@Getter
  • src/main/java/com/example/moviezone/model/Discount.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
    43import lombok.Getter;
    54import lombok.Setter;
    65import lombok.ToString;
     6import org.springframework.security.core.GrantedAuthority;
     7import org.springframework.security.core.userdetails.UserDetails;
    78
     9import javax.management.relation.Role;
     10import javax.persistence.*;
    811import java.time.LocalDate;
     12import java.time.LocalDateTime;
     13import java.util.Collection;
     14
    915
    1016@Entity
  • src/main/java/com/example/moviezone/model/Event.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
    43import lombok.Getter;
    54import lombok.Setter;
    65import lombok.ToString;
     6
     7import javax.persistence.*;
     8
    79
    810import java.time.LocalDate;
  • src/main/java/com/example/moviezone/model/Film.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
    43import lombok.Getter;
    54import lombok.Setter;
    65import lombok.ToString;
     6
     7import javax.persistence.*;
     8
    79
    810import java.time.LocalDate;
  • src/main/java/com/example/moviezone/model/Projection.java

    reb226b2 r2269653  
    22
    33
    4 import jakarta.persistence.*;
     4import javax.persistence.*;
    55import lombok.Getter;
    66import lombok.Setter;
  • src/main/java/com/example/moviezone/model/Projection_Room.java

    reb226b2 r2269653  
    22
    33
    4 import jakarta.persistence.*;
     4import javax.persistence.*;
    55import lombok.Getter;
    66import lombok.Setter;
  • src/main/java/com/example/moviezone/model/Salary.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
     3import javax.persistence.*;
    44import lombok.Getter;
    55import lombok.Setter;
  • src/main/java/com/example/moviezone/model/Seat.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
     3import javax.persistence.*;
    44import lombok.Getter;
    55import lombok.Setter;
  • src/main/java/com/example/moviezone/model/Ticket.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
     3import javax.persistence.*;
    44import lombok.Getter;
    55import lombok.Setter;
    66import lombok.ToString;
    77
     8import java.math.BigInteger;
    89import java.time.LocalDate;
    910import java.time.LocalDateTime;
     
    1819    @Id
    1920    @GeneratedValue(strategy = GenerationType.IDENTITY)
    20     Integer id_ticket;
     21    int id_ticket;
    2122
    22     Integer price;
     23    long price;
    2324    LocalDate date_reserved;
    2425
  • src/main/java/com/example/moviezone/model/User.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
     3
    44import lombok.Getter;
    55import lombok.Setter;
     
    99
    1010import javax.management.relation.Role;
     11import javax.persistence.*;
    1112import java.time.LocalDate;
    1213import java.time.LocalDateTime;
  • src/main/java/com/example/moviezone/model/Work_Hours_Weekly.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
     3import javax.persistence.*;
    44import lombok.Getter;
    55import lombok.Setter;
  • src/main/java/com/example/moviezone/model/Worker.java

    reb226b2 r2269653  
    11package com.example.moviezone.model;
    22
    3 import jakarta.persistence.*;
     3import javax.persistence.*;
    44import lombok.Getter;
    55import lombok.Setter;
  • src/main/java/com/example/moviezone/model/manytomany/CinemaOrganizesEvent.java

    reb226b2 r2269653  
    11package com.example.moviezone.model.manytomany;
    2 
    3 import jakarta.persistence.*;
    42import lombok.Getter;
    53import lombok.RequiredArgsConstructor;
    64import lombok.Setter;
    75import lombok.ToString;
     6import org.springframework.security.core.GrantedAuthority;
     7import org.springframework.security.core.userdetails.UserDetails;
     8
     9import javax.management.relation.Role;
     10import javax.persistence.*;
     11import java.time.LocalDate;
     12import java.time.LocalDateTime;
     13import java.util.Collection;
     14
    815
    916@Entity
  • src/main/java/com/example/moviezone/model/manytomany/CinemaPlaysFilm.java

    reb226b2 r2269653  
    11package com.example.moviezone.model.manytomany;
    22
    3 import jakarta.persistence.*;
    43import lombok.Getter;
    54import lombok.RequiredArgsConstructor;
    65import lombok.Setter;
    76import lombok.ToString;
     7import org.springframework.security.core.GrantedAuthority;
     8import org.springframework.security.core.userdetails.UserDetails;
     9
     10import javax.management.relation.Role;
     11import javax.persistence.*;
     12import java.time.LocalDate;
     13import java.time.LocalDateTime;
     14import java.util.Collection;
    815
    916@Entity
  • src/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEvent.java

    reb226b2 r2269653  
    11package com.example.moviezone.model.manytomany;
    22
    3 import jakarta.persistence.*;
    43import lombok.Getter;
    54import lombok.RequiredArgsConstructor;
    65import lombok.Setter;
    76import lombok.ToString;
     7import org.springframework.security.core.GrantedAuthority;
     8import org.springframework.security.core.userdetails.UserDetails;
     9
     10import javax.management.relation.Role;
     11import javax.persistence.*;
     12import java.time.LocalDate;
     13import java.time.LocalDateTime;
     14import java.util.Collection;
     15
    816
    917@Entity
  • src/main/java/com/example/moviezone/model/manytomany/CustomerRatesFilm.java

    reb226b2 r2269653  
    11package com.example.moviezone.model.manytomany;
    2 
    3 import jakarta.persistence.*;
    42import lombok.Getter;
    53import lombok.RequiredArgsConstructor;
    64import lombok.Setter;
    75import lombok.ToString;
     6import org.springframework.security.core.GrantedAuthority;
     7import org.springframework.security.core.userdetails.UserDetails;
     8
     9import javax.management.relation.Role;
     10import javax.persistence.*;
     11import java.time.LocalDate;
     12import java.time.LocalDateTime;
     13import java.util.Collection;
    814
    915@Entity
  • src/main/java/com/example/moviezone/model/manytomany/ProjectionIsPlayedInRoom.java

    reb226b2 r2269653  
    11package com.example.moviezone.model.manytomany;
    22
    3 import jakarta.persistence.*;
    43import lombok.Getter;
    54import lombok.RequiredArgsConstructor;
    65import lombok.Setter;
    76import lombok.ToString;
     7import org.springframework.security.core.GrantedAuthority;
     8import org.springframework.security.core.userdetails.UserDetails;
     9
     10import javax.management.relation.Role;
     11import javax.persistence.*;
     12import java.time.LocalDate;
     13import java.time.LocalDateTime;
     14import java.util.Collection;
    815
    916@Entity
Note: See TracChangeset for help on using the changeset viewer.