@Embeddable public final class UserAccountIdentifier extends SalespointIdentifier
UserAccountIdentifier
serves as an identifier type for UserAccount
objects. The main reason for its existence is type safety for identifier
across the Salespoint Framework. UserIdentifier
instances serve as primary key attribute in
UserAccount
, but can also be used as a key for non-persistent,
Map
-based implementations.Constructor and Description |
---|
UserAccountIdentifier()
Creates a new unique identifier for
UserAccount s. |
UserAccountIdentifier(java.lang.String userIdentifier)
Creates a new identifier for
UserAccount s. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
compareTo, getIdentifier, toString
public UserAccountIdentifier()
UserAccount
s.public UserAccountIdentifier(java.lang.String userIdentifier)
UserAccount
s. This self defined identifier
is not guaranteed to be unique. But you can provide a human readable
value.userIdentifier
- The value of this identifier. Will not be checked to be unique.public int hashCode()
hashCode
in class SalespointIdentifier
public boolean equals(java.lang.Object other)
equals
in class SalespointIdentifier