Package org.openwms.transactions.api
Class TransactionVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<TransactionVO>
org.ameba.http.AbstractBase<TransactionVO>
org.openwms.transactions.api.TransactionVO
A TransactionVO.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Size(max=255) String
A category name, like Reconciliation or Replenishment the Transaction is part of.private @Size(max=255) String
The human user or system that initiated the Transaction.private @Size(max=2048) String
A human readable descriptive text of the Transaction that happened.Arbitrary detail information with values according to the specific Transaction.static final String
HTTP media type representation.private @Null(groups=Create.class) @Size(max=255) String
The persistent key.private @Size(max=255) String
The service name that created the Transaction.private @Size(max=255) String
An id to a dataset the Transaction is related to.private @Size(max=255) String
An id to request (business transaction) the Transaction was part of.private @NotEmpty(groups=Create.class) @Size(max=255) String
A defined transaction type or key. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
All fields.getpKey()
getType()
int
hashCode()
All fields.void
setCategory
(String category) void
setCreatedByUser
(String createdByUser) void
setDescription
(String description) void
setDetails
(Map<String, String> details) void
void
void
setSenderId
(String senderId) void
setTraceId
(String traceId) void
toString()
All fields.Methods inherited from class org.ameba.http.AbstractBase
getOl, setOl
Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks
-
Field Details
-
MEDIA_TYPE
HTTP media type representation.- See Also:
-
pKey
@Null(groups=Create.class) @Size(max=255) private @Null(groups=Create.class) @Size(max=255) String pKeyThe persistent key. -
description
A human readable descriptive text of the Transaction that happened. -
type
@NotEmpty(groups=Create.class) @Size(max=255) private @NotEmpty(groups=Create.class) @Size(max=255) String typeA defined transaction type or key. -
createdByUser
The human user or system that initiated the Transaction. -
sender
The service name that created the Transaction. -
senderId
An id to a dataset the Transaction is related to. -
category
A category name, like Reconciliation or Replenishment the Transaction is part of. -
traceId
An id to request (business transaction) the Transaction was part of. -
details
Arbitrary detail information with values according to the specific Transaction.
-
-
Constructor Details
-
TransactionVO
public TransactionVO()
-
-
Method Details
-
getpKey
-
setpKey
-
getDescription
-
setDescription
-
getType
-
setType
-
getCreatedByUser
-
setCreatedByUser
-
getSender
-
setSender
-
getSenderId
-
setSenderId
-
getCategory
-
setCategory
-
getTraceId
-
setTraceId
-
getDetails
-
setDetails
-
addDetail
-
equals
All fields.- Overrides:
equals
in classorg.springframework.hateoas.RepresentationModel<TransactionVO>
-
hashCode
public int hashCode()All fields.- Overrides:
hashCode
in classorg.springframework.hateoas.RepresentationModel<TransactionVO>
-
toString
All fields.- Overrides:
toString
in classorg.springframework.hateoas.RepresentationModel<TransactionVO>
-