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:
  • Field Details

    • SEPARATOR

      static final String SEPARATOR
      Separator to use in toString method.
      See Also:
    • errorNo

      private String errorNo
      Error number.
    • errorText

      private String errorText
      Error message text.
    • transportUnit

      private TransportUnit transportUnit
  • Constructor Details

    • UnitError

      protected UnitError()
      Dear JPA...
    • UnitError

      private UnitError(UnitError.Builder builder)
  • Method Details

    • newBuilder

      public static UnitError.Builder newBuilder()
    • getErrorNo

      public String getErrorNo()
    • getErrorText

      public String getErrorText()
    • setTransportUnit

      void setTransportUnit(TransportUnit transportUnit)
      Set the TransportUnit for this error.
      Parameters:
      transportUnit - The TransportUnit instance
    • getTransportUnit

      public TransportUnit getTransportUnit()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.ameba.integration.jpa.ApplicationEntity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.ameba.integration.jpa.ApplicationEntity
    • toString

      public String toString()
      Overrides:
      toString in class Object