Changeset ae042f4 for src/main/java/com/example/autopartz/model/Client.java
- 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/Client.java
r6832924 rae042f4 1 1 package com.example.autopartz.model; 2 2 3 import jakarta.persistence.Entity; 4 import lombok.*; 3 import lombok.Getter; 4 import lombok.RequiredArgsConstructor; 5 import lombok.Setter; 6 import lombok.ToString; 5 7 import org.hibernate.Hibernate; 8 import org.springframework.security.core.GrantedAuthority; 6 9 10 import javax.persistence.Entity; 11 import java.util.Collection; 12 import java.util.Collections; 7 13 import java.util.Objects; 8 14 … … 25 31 return getClass().hashCode(); 26 32 } 33 @Override 34 public Collection<? extends GrantedAuthority> getAuthorities() { 35 return Collections.singletonList(Role.ROLE_CLIENT); 36 } 27 37 }
Note:
See TracChangeset
for help on using the changeset viewer.