java.lang.Object
com.dada.banking_project.models.Users.User
com.dada.banking_project.models.Users.Admin

@Entity public class Admin extends User
This class represents an administrator, a type of user with elevated privileges.
  • Constructor Details

    • Admin

      public Admin(Long id, String name, String username, String password, Collection<Role> roles)
      Creates a new instance of the Admin class.
      Parameters:
      id - The ID of the administrator.
      name - The name of the administrator.
      username - The username of the administrator.
      password - The password of the administrator.
      roles - The roles assigned to the administrator.
    • Admin

      public Admin()
      Creates a new instance of the Admin class.