Package org.openwms.common.transport
Class UnitError
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.common.transport.UnitError
- All Implemented Interfaces:
Serializable
,org.ameba.integration.TypedEntity<Long>
@Entity
public class UnitError
extends org.ameba.integration.jpa.ApplicationEntity
implements Serializable
An UnitError represents an error occurring on a
TransportUnit
.- Author:
- Heiko Scherrer
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
UnitError
builder static inner class. -
Field Summary
Modifier and TypeFieldDescriptionprivate String
Error number.private String
Error message text.(package private) static final String
Separator to use in toString method.private TransportUnit
Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static UnitError.Builder
(package private) void
setTransportUnit
(TransportUnit transportUnit) Set the TransportUnit for this error.toString()
Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKey
Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl
-
Field Details
-
SEPARATOR
Separator to use in toString method.- See Also:
-
errorNo
Error number. -
errorText
Error message text. -
transportUnit
-
-
Constructor Details
-
UnitError
protected UnitError()Dear JPA... -
UnitError
-
-
Method Details
-
newBuilder
-
getErrorNo
-
getErrorText
-
setTransportUnit
Set the TransportUnit for this error.- Parameters:
transportUnit
- The TransportUnit instance
-
getTransportUnit
-
equals
- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-
toString
-