Package net.solarnetwork.central.dao
Class UserUuidPK
java.lang.Object
net.solarnetwork.central.dao.UserUuidPK
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<UserUuidPK>
Primary key based on a user ID and a UUID.
- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.UserUuidPK(Long userId, UUID id) Construct with values. -
Method Summary
-
Constructor Details
-
UserUuidPK
public UserUuidPK()Default constructor. -
UserUuidPK
Construct with values.- Parameters:
userId- the user IDid- the UUID
-
-
Method Details
-
compareTo
Compare twoUserUuidPKobjects. Keys are ordered based on:- userId
- id
- Specified by:
compareToin interfaceComparable<UserUuidPK>
-
toString
-
hashCode
public int hashCode() -
equals
-
clone
-
getId
-
setId
-
getUserId
-
setUserId
-