All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.greennlab.ddul.user.User Maven / Gradle / Ivy

Go to download

DDul means "ground" in korean prounance. It helps to you when concreate a java projects. And support with database access, cache abstraction, system code generation, hierarchical data handling, article management and etc.

There is a newer version: 0.3.0
Show newest version
package io.github.greennlab.ddul.user;

import static io.github.greennlab.ddul.Application.DB_PREFIX;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.greennlab.ddul.entity.BaseEntity;
import java.time.LocalDate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Table(name = DB_PREFIX + "USER")
@NoArgsConstructor
@Getter
@Setter
public class User extends BaseEntity {

  public static final String REGEXP_PASSWORD =
      "^(?=.*[~!@#$%^&*()_+`\\-=\\[\\]{};':\",./<>?])(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])\\S{6,}$";

  private static final long serialVersionUID = -7382145646927293876L;


  private String username;

  @JsonIgnore
  private String password;

  @Column(name = "PASSWORD_EXP")
  private LocalDate passwordExpired;

  private String email;
  private String name;
  private boolean lock;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy