Class UserRolesId

  • All Implemented Interfaces:
    java.io.Serializable

    @Embeddable
    public class UserRolesId
    extends java.lang.Object
    implements java.io.Serializable
    Class to represent the complex primary key for UserRoles
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UserRolesId()
      Default constructor required by JPA
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      long getRole()
      Getter for the role id
      long getUser()
      Getter for the user id
      int hashCode()  
      void setRole​(long role)
      The setter for the role id
      void setUser​(long user)
      Setter for the user id
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserRolesId

        public UserRolesId()
        Default constructor required by JPA
    • Method Detail

      • getUser

        public long getUser()
        Getter for the user id
        Returns:
        long the user id
      • setUser

        public void setUser​(long user)
        Setter for the user id
        Parameters:
        user - the new user id for this object
      • getRole

        public long getRole()
        Getter for the role id
        Returns:
        long the role id
      • setRole

        public void setRole​(long role)
        The setter for the role id
        Parameters:
        role - the new role id for this object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object