java.lang.Object
es.kukenan.smartfi.microservice.communication.repository.entity.User
All Implemented Interfaces:
Serializable

@Entity public class User extends Object implements Serializable
User database entity.
See Also:
  • Field Details

    • id

      @NotBlank @Size(max=100) private @NotBlank @Size(max=100) String id
      User identifier.
    • name

      @NotBlank @Size(max=100) private @NotBlank @Size(max=100) String name
      User name.
    • surname

      @Size(max=45) private @Size(max=45) String surname
      User first surname.
    • documentId

      @Size(max=20) private @Size(max=20) String documentId
      Identification document number.
    • documentType

      private DocumentType documentType
      Type of user document.
    • email

      @Size(max=255) private @Size(max=255) String email
      Identification document number.
    • phone

      @Size(max=20) private @Size(max=20) String phone
      Identification document number.
    • phonePrefix

      @Size(max=5) private @Size(max=5) String phonePrefix
      Identification document number.
    • robinsonList

      @NotNull private @NotNull Boolean robinsonList
      Identification document number.
    • language

      private UserLanguage language
      User language.
    • gender

      private UserGender gender
      User gender.
    • civilStatus

      private UserCivilStatus civilStatus
      User civil status.
    • notificationsEnabled

      @NotNull private @NotNull Boolean notificationsEnabled
      Identification document number.
    • company

      private Company company
      Company.
    • push

      private PushNotification push
      Push information.
    • validInformation

      @NotNull private @NotNull Boolean validInformation
      user valid information for notification.
    • natureType

      @Size(max=1) private @Size(max=1) String natureType
      Nature type.
    • userCode

      private Integer userCode
      User code.
    • smsByEmail

      @NotNull private @NotNull Boolean smsByEmail
      Change sms send type for email.
    • userOnboardingId

      private String userOnboardingId
      User onboarding identifier.
    • address

      private String address
      User address.
    • nationality

      private String nationality
      User nationality.
  • Constructor Details

    • User

      public User(String id, String name, String surname, String documentId, String email, String phone, String phonePrefix, Boolean robinsonList, UserLanguage language, UserGender gender, UserCivilStatus civilStatus, Boolean notificationsEnabled, Company company, PushNotification push, Boolean validInformation, String natureType, Boolean smsByEmail, DocumentType documentType, String address, String nationality)
      Contructor with all parameters with control of whitespaces in field email.
      Parameters:
      id - User identifier.
      name - User name.
      surname - User first surname.
      documentId - Identification document number.
      email - User Email.
      phone - User phone.
      phonePrefix - User phone prefix.
      robinsonList - Robinson list.
      language - User language.
      gender - User gender.
      civilStatus - User civilStatus.
      notificationsEnabled - Notification enabled.
      company - Company.
      push - Push information.
      validInformation - user valid information for notification.
      natureType - Nature type.
      smsByEmail - SmsByEmail type.
      documentType - type of identification document.
      address - user address.
      nationality - user nationality.