- 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/Deliveryman.java
r6832924 rae042f4 1 1 package com.example.autopartz.model; 2 2 3 import jakarta.persistence.Entity; 4 import jakarta.persistence.Table; 5 import lombok.*; 3 import lombok.Getter; 4 import lombok.RequiredArgsConstructor; 5 import lombok.Setter; 6 import lombok.ToString; 6 7 import org.hibernate.Hibernate; 8 import org.springframework.security.core.GrantedAuthority; 7 9 10 import javax.persistence.Entity; 11 import javax.persistence.Table; 8 12 import java.time.LocalDate; 13 import java.util.Collection; 14 import java.util.Collections; 9 15 import java.util.Objects; 10 16 … … 30 36 return getClass().hashCode(); 31 37 } 38 @Override 39 public Collection<? extends GrantedAuthority> getAuthorities() { 40 return Collections.singletonList(Role.ROLE_DELIVERYMAN); 41 } 32 42 }
Note:
See TracChangeset
for help on using the changeset viewer.