Package org.openwms.common.transport.api
Class TransportUnitVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<TransportUnitVO>
org.ameba.http.AbstractBase<TransportUnitVO>
org.openwms.common.transport.api.TransportUnitVO
- All Implemented Interfaces:
Serializable
public class TransportUnitVO
extends org.ameba.http.AbstractBase<TransportUnitVO>
implements Serializable
A TransportUnitVO.
- Author:
- Heiko Scherrer
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @NotNull(message="{owms.common.common.tu.actualLocation}",groups={Create.class,Update.class}) LocationVO
The currentLocation
of theTransportUnit
.private LocalDateTime
Date when theTransportUnit
has been moved to the currentLocation
.private @NotBlank(message="{owms.common.common.tu.barcode}",groups={Create.class,Update.class}) String
Unique natural key.private String
ATransportUnit
may belong to a group ofTransportUnits
.static final String
HTTP media type representation.private @NotBlank(groups=Update.class) String
The persistent key.private @NotBlank(message="{owms.common.common.tu.state}",groups=Update.class) String
The state of the TransportUnit.private LocationVO
The targetLocation
of theTransportUnit
.private @NotNull(message="{owms.common.common.tu.transportUnitType}",groups={Create.class,WithTuT.class}) TransportUnitTypeVO
TheTransportUnitType
of theTransportUnit
.private org.openwms.core.units.api.Weight
Weight of theTransportUnit
.Fields inherited from class org.ameba.http.AbstractBase
DATETIME_FORMAT_ZULU
-
Constructor Summary
ConstructorsModifierConstructorDescriptionTransportUnitVO
(String barcode) TransportUnitVO
(String barcode, TransportUnitTypeVO transportUnitType, LocationVO actualLocation) private
TransportUnitVO
(TransportUnitVO.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionstatic TransportUnitVO.Builder
builder()
boolean
All fields.getpKey()
getState()
org.openwms.core.units.api.Weight
int
hashCode()
All fields.static TransportUnitVO.Builder
void
setActualLocation
(LocationVO actualLocation) void
setActualLocationDate
(LocalDateTime actualLocationDate) void
setBarcode
(String barcode) void
setGroupId
(String groupId) void
void
void
setTargetLocation
(LocationVO targetLocation) void
setTransportUnitType
(TransportUnitTypeVO transportUnitType) void
setWeight
(org.openwms.core.units.api.Weight weight) Methods inherited from class org.ameba.http.AbstractBase
getCreateDt, getLastModifiedDt, getOl, setCreateDt, setLastModifiedDt, 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, toString
-
Field Details
-
MEDIA_TYPE
HTTP media type representation.- See Also:
-
pKey
The persistent key. -
barcode
@NotBlank(message="{owms.common.common.tu.barcode}", groups={Create.class,Update.class}) private @NotBlank(message="{owms.common.common.tu.barcode}",groups={Create.class,Update.class}) String barcodeUnique natural key. -
groupId
ATransportUnit
may belong to a group ofTransportUnits
. -
actualLocation
@NotNull(message="{owms.common.common.tu.actualLocation}", groups={Create.class,Update.class}) private @NotNull(message="{owms.common.common.tu.actualLocation}",groups={Create.class,Update.class}) LocationVO actualLocationThe currentLocation
of theTransportUnit
. -
targetLocation
The targetLocation
of theTransportUnit
. -
state
@NotBlank(message="{owms.common.common.tu.state}", groups=Update.class) private @NotBlank(message="{owms.common.common.tu.state}",groups=Update.class) String stateThe state of the TransportUnit. -
transportUnitType
@NotNull(message="{owms.common.common.tu.transportUnitType}", groups={Create.class,WithTuT.class}) private @NotNull(message="{owms.common.common.tu.transportUnitType}",groups={Create.class,WithTuT.class}) TransportUnitTypeVO transportUnitTypeTheTransportUnitType
of theTransportUnit
. -
weight
private org.openwms.core.units.api.Weight weightWeight of theTransportUnit
. -
actualLocationDate
Date when theTransportUnit
has been moved to the currentLocation
.
-
-
Constructor Details
-
TransportUnitVO
public TransportUnitVO() -
TransportUnitVO
-
TransportUnitVO
public TransportUnitVO(String barcode, TransportUnitTypeVO transportUnitType, LocationVO actualLocation) -
TransportUnitVO
-
-
Method Details
-
newBuilder
-
builder
-
getpKey
-
setpKey
-
getBarcode
-
setBarcode
-
getGroupId
-
setGroupId
-
getActualLocation
-
setActualLocation
-
getTargetLocation
-
setTargetLocation
-
getState
-
setState
-
getTransportUnitType
-
setTransportUnitType
-
getWeight
public org.openwms.core.units.api.Weight getWeight() -
setWeight
public void setWeight(org.openwms.core.units.api.Weight weight) -
getActualLocationDate
-
setActualLocationDate
-
equals
All fields.- Overrides:
equals
in classorg.ameba.http.AbstractBase<TransportUnitVO>
-
hashCode
public int hashCode()All fields.- Overrides:
hashCode
in classorg.ameba.http.AbstractBase<TransportUnitVO>
-