- Timestamp:
- 01/04/23 02:49:26 (23 months ago)
- Branches:
- main
- Children:
- ab952ab
- Parents:
- 6832924
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Administrator.java
r6832924 rae042f4 1 1 package com.example.autopartz.model; 2 2 3 import jakarta.persistence.*; 4 import lombok.*; 3 import lombok.Getter; 4 import lombok.Setter; 5 import lombok.ToString; 5 6 import org.hibernate.Hibernate; 7 import org.springframework.security.core.GrantedAuthority; 6 8 9 import javax.persistence.Entity; 7 10 import java.time.LocalDate; 11 import java.util.Collection; 12 import java.util.Collections; 8 13 import java.util.Objects; 9 14 … … 29 34 return getClass().hashCode(); 30 35 } 36 37 @Override 38 public Collection<? extends GrantedAuthority> getAuthorities() { 39 return Collections.singletonList(Role.ROLE_ADMIN); 40 } 31 41 }
Note:
See TracChangeset
for help on using the changeset viewer.