Changeset 2269653 for src/main/java/com


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

Location:
src/main/java/com/example/moviezone
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • 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.