@Embeddable public final class AccountancyEntryIdentifier extends SalespointIdentifier
AccountancyEntryIdentifier
serves as an identifier type for
AccountancyEntry
objects. The main reason for its existence is
type safety for identifier across the Salespoint Framework. AccoutancyEntryIdentifier
instances serve as primary key
attribute in PersistentAccountancyEntry
, but can also be used as
a key for non-persistent, Map
-based implementations.Constructor and Description |
---|
AccountancyEntryIdentifier()
Creates a new unique identifier for accountancy entries.
|
AccountancyEntryIdentifier(java.lang.String identifier)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
compareTo, getIdentifier, toString
public AccountancyEntryIdentifier()
@Deprecated public AccountancyEntryIdentifier(java.lang.String identifier)
identifier
- The string representation of the identifier.public int hashCode()
hashCode
in class SalespointIdentifier
public boolean equals(java.lang.Object other)
equals
in class SalespointIdentifier