Changeset 2269653
- Timestamp:
- 02/04/23 01:47:15 (22 months ago)
- Branches:
- master
- Children:
- adf250d
- Parents:
- eb226b2
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
pom.xml
reb226b2 r2269653 6 6 <groupId>org.springframework.boot</groupId> 7 7 <artifactId>spring-boot-starter-parent</artifactId> 8 <version> 3.0.2</version>8 <version>2.7.4</version> 9 9 <relativePath/> <!-- lookup parent from repository --> 10 10 </parent> … … 15 15 <description>MovieZone</description> 16 16 <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> 18 19 </properties> 19 20 20 <dependencies> 21 21 <dependency> 22 22 <groupId>org.springframework.boot</groupId> 23 23 <artifactId>spring-boot-starter-data-jpa</artifactId> 24 </dependency> 25 <dependency> 26 <groupId>org.thymeleaf.extras</groupId> 27 <artifactId>thymeleaf-extras-springsecurity5</artifactId> 24 28 </dependency> 25 29 <dependency> … … 37 41 <scope>provided</scope> 38 42 </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 44 44 45 45 <dependency> … … 63 63 <groupId>org.springframework.boot</groupId> 64 64 <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>70 65 </dependency> 71 66 </dependencies> -
src/main/java/com/example/moviezone/config/WebSecurityConfig.java
reb226b2 r2269653 9 9 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; 10 10 import org.springframework.security.crypto.password.PasswordEncoder; 11 import org.springframework.web.servlet.config.annotation.EnableWebMvc; 11 12 12 13 13 14 @Configuration 14 15 @EnableWebSecurity 16 @EnableWebMvc 15 17 @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) 16 18 public class WebSecurityConfig extends WebSecurityConfigurerAdapter { … … 42 44 .logout() 43 45 .logoutUrl("/logout") 46 .clearAuthentication(true) 44 47 .invalidateHttpSession(true) 45 48 .deleteCookies("JSESSIONID") -
src/main/java/com/example/moviezone/model/Category.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import jakarta.persistence.*;4 3 import lombok.Getter; 5 4 import lombok.Setter; 6 5 import lombok.ToString; 6 import org.springframework.security.core.GrantedAuthority; 7 import org.springframework.security.core.userdetails.UserDetails; 8 9 import javax.management.relation.Role; 10 import javax.persistence.*; 11 import java.time.LocalDate; 12 import java.time.LocalDateTime; 13 import java.util.Collection; 14 7 15 8 16 import java.util.Objects; -
src/main/java/com/example/moviezone/model/Cinema.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import jakarta.persistence.*;4 3 import lombok.Getter; 5 4 import lombok.Setter; 6 5 import lombok.ToString; 6 7 import javax.persistence.*; 8 7 9 8 10 @Entity -
src/main/java/com/example/moviezone/model/Customer.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import jakarta.persistence.Entity;4 import jakarta.persistence.PrimaryKeyJoinColumn;5 import jakarta.persistence.Table;6 3 import lombok.Getter; 7 4 import lombok.Setter; 8 5 import lombok.ToString; 6 import org.hibernate.Hibernate; 9 7 import org.springframework.security.core.GrantedAuthority; 10 8 9 import javax.persistence.Entity; 10 import javax.persistence.PrimaryKeyJoinColumn; 11 import javax.persistence.Table; 12 import java.time.LocalDate; 11 13 import java.util.Collection; 12 14 import java.util.Collections; 13 15 import java.util.Objects; 14 16 @Entity 15 17 @Getter -
src/main/java/com/example/moviezone/model/Discount.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import jakarta.persistence.*;4 3 import lombok.Getter; 5 4 import lombok.Setter; 6 5 import lombok.ToString; 6 import org.springframework.security.core.GrantedAuthority; 7 import org.springframework.security.core.userdetails.UserDetails; 7 8 9 import javax.management.relation.Role; 10 import javax.persistence.*; 8 11 import java.time.LocalDate; 12 import java.time.LocalDateTime; 13 import java.util.Collection; 14 9 15 10 16 @Entity -
src/main/java/com/example/moviezone/model/Event.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import jakarta.persistence.*;4 3 import lombok.Getter; 5 4 import lombok.Setter; 6 5 import lombok.ToString; 6 7 import javax.persistence.*; 8 7 9 8 10 import java.time.LocalDate; -
src/main/java/com/example/moviezone/model/Film.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import jakarta.persistence.*;4 3 import lombok.Getter; 5 4 import lombok.Setter; 6 5 import lombok.ToString; 6 7 import javax.persistence.*; 8 7 9 8 10 import java.time.LocalDate; -
src/main/java/com/example/moviezone/model/Projection.java
reb226b2 r2269653 2 2 3 3 4 import ja karta.persistence.*;4 import javax.persistence.*; 5 5 import lombok.Getter; 6 6 import lombok.Setter; -
src/main/java/com/example/moviezone/model/Projection_Room.java
reb226b2 r2269653 2 2 3 3 4 import ja karta.persistence.*;4 import javax.persistence.*; 5 5 import lombok.Getter; 6 6 import lombok.Setter; -
src/main/java/com/example/moviezone/model/Salary.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import ja karta.persistence.*;3 import javax.persistence.*; 4 4 import lombok.Getter; 5 5 import lombok.Setter; -
src/main/java/com/example/moviezone/model/Seat.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import ja karta.persistence.*;3 import javax.persistence.*; 4 4 import lombok.Getter; 5 5 import lombok.Setter; -
src/main/java/com/example/moviezone/model/Ticket.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import ja karta.persistence.*;3 import javax.persistence.*; 4 4 import lombok.Getter; 5 5 import lombok.Setter; 6 6 import lombok.ToString; 7 7 8 import java.math.BigInteger; 8 9 import java.time.LocalDate; 9 10 import java.time.LocalDateTime; … … 18 19 @Id 19 20 @GeneratedValue(strategy = GenerationType.IDENTITY) 20 Integerid_ticket;21 int id_ticket; 21 22 22 Integerprice;23 long price; 23 24 LocalDate date_reserved; 24 25 -
src/main/java/com/example/moviezone/model/User.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import jakarta.persistence.*; 3 4 4 import lombok.Getter; 5 5 import lombok.Setter; … … 9 9 10 10 import javax.management.relation.Role; 11 import javax.persistence.*; 11 12 import java.time.LocalDate; 12 13 import java.time.LocalDateTime; -
src/main/java/com/example/moviezone/model/Work_Hours_Weekly.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import ja karta.persistence.*;3 import javax.persistence.*; 4 4 import lombok.Getter; 5 5 import lombok.Setter; -
src/main/java/com/example/moviezone/model/Worker.java
reb226b2 r2269653 1 1 package com.example.moviezone.model; 2 2 3 import ja karta.persistence.*;3 import javax.persistence.*; 4 4 import lombok.Getter; 5 5 import lombok.Setter; -
src/main/java/com/example/moviezone/model/manytomany/CinemaOrganizesEvent.java
reb226b2 r2269653 1 1 package com.example.moviezone.model.manytomany; 2 3 import jakarta.persistence.*;4 2 import lombok.Getter; 5 3 import lombok.RequiredArgsConstructor; 6 4 import lombok.Setter; 7 5 import lombok.ToString; 6 import org.springframework.security.core.GrantedAuthority; 7 import org.springframework.security.core.userdetails.UserDetails; 8 9 import javax.management.relation.Role; 10 import javax.persistence.*; 11 import java.time.LocalDate; 12 import java.time.LocalDateTime; 13 import java.util.Collection; 14 8 15 9 16 @Entity -
src/main/java/com/example/moviezone/model/manytomany/CinemaPlaysFilm.java
reb226b2 r2269653 1 1 package com.example.moviezone.model.manytomany; 2 2 3 import jakarta.persistence.*;4 3 import lombok.Getter; 5 4 import lombok.RequiredArgsConstructor; 6 5 import lombok.Setter; 7 6 import lombok.ToString; 7 import org.springframework.security.core.GrantedAuthority; 8 import org.springframework.security.core.userdetails.UserDetails; 9 10 import javax.management.relation.Role; 11 import javax.persistence.*; 12 import java.time.LocalDate; 13 import java.time.LocalDateTime; 14 import java.util.Collection; 8 15 9 16 @Entity -
src/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEvent.java
reb226b2 r2269653 1 1 package com.example.moviezone.model.manytomany; 2 2 3 import jakarta.persistence.*;4 3 import lombok.Getter; 5 4 import lombok.RequiredArgsConstructor; 6 5 import lombok.Setter; 7 6 import lombok.ToString; 7 import org.springframework.security.core.GrantedAuthority; 8 import org.springframework.security.core.userdetails.UserDetails; 9 10 import javax.management.relation.Role; 11 import javax.persistence.*; 12 import java.time.LocalDate; 13 import java.time.LocalDateTime; 14 import java.util.Collection; 15 8 16 9 17 @Entity -
src/main/java/com/example/moviezone/model/manytomany/CustomerRatesFilm.java
reb226b2 r2269653 1 1 package com.example.moviezone.model.manytomany; 2 3 import jakarta.persistence.*;4 2 import lombok.Getter; 5 3 import lombok.RequiredArgsConstructor; 6 4 import lombok.Setter; 7 5 import lombok.ToString; 6 import org.springframework.security.core.GrantedAuthority; 7 import org.springframework.security.core.userdetails.UserDetails; 8 9 import javax.management.relation.Role; 10 import javax.persistence.*; 11 import java.time.LocalDate; 12 import java.time.LocalDateTime; 13 import java.util.Collection; 8 14 9 15 @Entity -
src/main/java/com/example/moviezone/model/manytomany/ProjectionIsPlayedInRoom.java
reb226b2 r2269653 1 1 package com.example.moviezone.model.manytomany; 2 2 3 import jakarta.persistence.*;4 3 import lombok.Getter; 5 4 import lombok.RequiredArgsConstructor; 6 5 import lombok.Setter; 7 6 import lombok.ToString; 7 import org.springframework.security.core.GrantedAuthority; 8 import org.springframework.security.core.userdetails.UserDetails; 9 10 import javax.management.relation.Role; 11 import javax.persistence.*; 12 import java.time.LocalDate; 13 import java.time.LocalDateTime; 14 import java.util.Collection; 8 15 9 16 @Entity
Note:
See TracChangeset
for help on using the changeset viewer.