Class Role

java.lang.Object
se.bth.pulse.entity.Role

@Entity(name="Role") public class Role extends Object
This is the entity class for the table Role. This class models the table Roles meaning that each instance of this class represents a row in the table. Using this class the table is created. This class is used to hold the roles that can be connected to the user. The connection between user and role is a one-to-many relationship. This means that one role can be connected to many users but one user can only be connected to one role.
  • Constructor Details

    • Role

      public Role()
  • Method Details

    • setId

      public void setId(Integer id)
    • setName

      public void setName(String name)
    • setAuthorities

      public void setAuthorities(List<Authority> authorities)