@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
UserAccounts. |
UserAccountIdentifier(java.lang.String userIdentifier)
Creates a new identifier for
UserAccounts. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
compareTo, getIdentifier, toStringpublic UserAccountIdentifier()
UserAccounts.public UserAccountIdentifier(java.lang.String userIdentifier)
UserAccounts. 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 SalespointIdentifierpublic boolean equals(java.lang.Object other)
equals in class SalespointIdentifier