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