Class UserRoleRef

java.lang.Object
com.broadleafcommerce.auth.resource.domain.UserRoleRef

public class UserRoleRef extends Object
An alternative DTO object to use for the specific use case of being an element in collection fields of parent entities. Holds all non-collection fields of JpaUserRole.
Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • UserRoleRef

      public UserRoleRef(String id, String name)
    • UserRoleRef

      public UserRoleRef()
  • Method Details

    • getId

      public String getId()
    • getName

      public String getName()
    • setId

      public void setId(String id)
    • setName

      public void setName(String name)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object