DepotPosition Domain Class
General Description
DepotPositions are used to describe the custody (the amount of several products) of a person.
One DepotPosition object holds the relative change in the amount of a product as well as the overall amount.
A DepotPosition is always triggered after a trade or after a penalty payment.DepotPosition Properties
A DepotPosition
domain class possesses the following properties:Long serverId
Competition competition
Person person
Integer change
Integer balance
String description
Date dateCreated = new Date();
Product product
Long transactionID
Boolean latest = true
Property Descriptions
- serverId: unique identifier of the entity assigned by the server
- competition: associates the DepotPosition with a certain competition instance
- person: reference to the person who is affected by the DepotPosition
- change: the relative change in the amount of a particular product; if the change value is positive the person acquired new units, if it is negative the person gave off units
- balance: the sum over all DepotPositions changes and therefore the overall balance of the units of a particular product
- description further information why the DepotPosition was created
- dateCreated: the date on which the DepotPosition was created
- transactionID: associate the DepotPosition to a certain trade
- latest: indicates if this entity is the lates of all DepotPosition; if the latest flag is set the balance property can interpreted as the current overall balance of units of a particular product