@Entity public class AccountancyEntry extends AbstractEntity<AccountancyEntryIdentifier>
ProductPaymentEntry
.Modifier | Constructor and Description |
---|---|
protected |
AccountancyEntry() |
|
AccountancyEntry(javax.money.MonetaryAmount value)
Creates a new
PersistentAccountancyEntry with a specific value. |
|
AccountancyEntry(javax.money.MonetaryAmount value,
String description)
Creates a new
PersistentAccountancyEntry with a specific value and a user defined time. |
Modifier and Type | Method and Description |
---|---|
Optional<LocalDateTime> |
getDate() |
String |
getDescription() |
AccountancyEntryIdentifier |
getId() |
javax.money.MonetaryAmount |
getValue() |
boolean |
hasDate()
Returns whether the
AccountancyEntry already has a Date set. |
(package private) void |
setDate(LocalDateTime date) |
String |
toString() |
equals, hashCode, isNew
public AccountancyEntry(javax.money.MonetaryAmount value)
PersistentAccountancyEntry
with a specific value.value
- The value that is stored in this entry.public AccountancyEntry(javax.money.MonetaryAmount value, String description)
PersistentAccountancyEntry
with a specific value and a user defined time.value
- The value that is stored in this entry.description
- A user-supplied description for this entry.@Generated(value="lombok") protected AccountancyEntry()
public boolean hasDate()
AccountancyEntry
already has a Date
set.public final Optional<LocalDateTime> getDate()
DateTime
when this entry was posted.public AccountancyEntryIdentifier getId()
@Generated(value="lombok") public String toString()
@Generated(value="lombok") public javax.money.MonetaryAmount getValue()
@Generated(value="lombok") void setDate(LocalDateTime date)
@Generated(value="lombok") public String getDescription()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.