Package net.solarnetwork.central.domain
Class BaseIdentity
java.lang.Object
net.solarnetwork.central.domain.BaseIdentity
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Long>,net.solarnetwork.domain.Identity<Long>
- Direct Known Subclasses:
BaseEntity,SimpleNodeGroupInformation,SimpleNodeInformation
public abstract class BaseIdentity
extends Object
implements Cloneable, Serializable, net.solarnetwork.domain.Identity<Long>
Base implementation of a Long-based
Identity.- See Also:
-
Constructor Details
-
BaseIdentity
public BaseIdentity()
-
-
Method Details
-
clone
-
hashCode
public int hashCode() -
equals
Test if two BaseEntity objects have the samegetId()value. -
compareTo
Compare based on the primary key, with null values ordered before non-null values.- Specified by:
compareToin interfaceComparable<Long>
-
getId
- Specified by:
getIdin interfacenet.solarnetwork.domain.Identity<Long>- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-