Class UserEntity

java.lang.Object
fr.tiogars.domaintemplate.domains.auth.user.entities.UserEntity

@Entity public class UserEntity extends Object
Persists a user account and its password hash.
  • Constructor Details

    • UserEntity

      protected UserEntity()
    • UserEntity

      public UserEntity(String username, String passwordHash, boolean enabled, Set<RoleEntity> roles, Instant createdDate, Instant lastModifiedDate)
  • Method Details

    • update

      public void update(String username, String passwordHash, boolean enabled, Set<RoleEntity> roles, Instant lastModifiedDate)
    • getId

      public Long getId()
    • getUsername

      public String getUsername()
    • getPasswordHash

      public String getPasswordHash()
    • isEnabled

      public boolean isEnabled()
    • getRoles

      public Set<RoleEntity> getRoles()
    • getCreatedDate

      public Instant getCreatedDate()
    • getLastModifiedDate

      public Instant getLastModifiedDate()