Changeset 27adfc8 for src/main/java/com/example/moviezone/model
- Timestamp:
- 02/04/23 18:48:07 (22 months ago)
- Branches:
- master
- Children:
- 6032d44
- Parents:
- adf250d
- Location:
- src/main/java/com/example/moviezone/model
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/Customer.java
radf250d r27adfc8 25 25 Integer points; 26 26 27 // public Customer(String password, String first_name, String last_name, String address, String contact_number, String username) { 28 // super(password, first_name, last_name, address, contact_number, username); 29 // } 30 27 31 @Override 28 32 public Collection<? extends GrantedAuthority> getAuthorities() { 29 return Collections.singletonList(Role.ROLE_ ADMIN);33 return Collections.singletonList(Role.ROLE_USER); 30 34 } 31 35 -
src/main/java/com/example/moviezone/model/User.java
radf250d r27adfc8 45 45 } 46 46 47 public User(String password, String first_name, String last_name, String address, String contact_number, String username) { 48 this.password = password; 49 this.first_name = first_name; 50 this.last_name = last_name; 51 this.address = address; 52 this.contact_number = contact_number; 53 this.username = username; 54 this.date_created=LocalDate.now(); 55 } 56 47 57 public User() { 48 58 -
src/main/java/com/example/moviezone/model/Worker.java
radf250d r27adfc8 7 7 import org.springframework.security.core.GrantedAuthority; 8 8 9 import java.time.LocalDate; 9 10 import java.util.Collection; 10 11 import java.util.Collections; … … 26 27 @JoinColumn(name = "id_cinema") 27 28 Cinema cinema; 29 30 // public Worker(String password, String first_name, String last_name, String address, String contact_number, String username) { 31 // super(password, first_name, last_name, address, contact_number, username); 32 // } 33 28 34 @Override 29 35 public Collection<? extends GrantedAuthority> getAuthorities() {
Note:
See TracChangeset
for help on using the changeset viewer.