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}) LocationVOThe currentLocationof theTransportUnit.private LocalDateTimeDate when theTransportUnithas been moved to the currentLocation.private @NotBlank(message="{owms.common.common.tu.barcode}",groups={Create.class,Update.class}) StringUnique natural key.private StringATransportUnitmay belong to a group ofTransportUnits.static final StringHTTP media type representation.private @NotBlank(groups=Update.class) StringThe persistent key.private @NotBlank(message="{owms.common.common.tu.state}",groups=Update.class) StringThe state of the TransportUnit.private LocationVOThe targetLocationof theTransportUnit.private @NotNull(message="{owms.common.common.tu.transportUnitType}",groups={Create.class,WithTuT.class}) TransportUnitTypeVOTheTransportUnitTypeof theTransportUnit.private org.openwms.core.units.api.WeightWeight 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) privateTransportUnitVO(TransportUnitVO.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionstatic TransportUnitVO.Builderbuilder()booleanAll fields.getpKey()getState()org.openwms.core.units.api.WeightinthashCode()All fields.static TransportUnitVO.BuildervoidsetActualLocation(LocationVO actualLocation) voidsetActualLocationDate(LocalDateTime actualLocationDate) voidsetBarcode(String barcode) voidsetGroupId(String groupId) voidvoidvoidsetTargetLocation(LocationVO targetLocation) voidsetTransportUnitType(TransportUnitTypeVO transportUnitType) voidsetWeight(org.openwms.core.units.api.Weight weight) Methods inherited from class org.ameba.http.AbstractBase
getCreateDt, getLastModifiedDt, getOl, setCreateDt, setLastModifiedDt, setOlMethods 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
ATransportUnitmay 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 currentLocationof theTransportUnit. -
targetLocation
The targetLocationof 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 transportUnitTypeTheTransportUnitTypeof theTransportUnit. -
weight
private org.openwms.core.units.api.Weight weightWeight of theTransportUnit. -
actualLocationDate
Date when theTransportUnithas 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:
equalsin classorg.ameba.http.AbstractBase<TransportUnitVO>
-
hashCode
public int hashCode()All fields.- Overrides:
hashCodein classorg.ameba.http.AbstractBase<TransportUnitVO>
-