Class ProblemHistory

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.wms.movements.impl.ProblemHistory
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>

@Entity public class ProblemHistory extends org.ameba.integration.jpa.ApplicationEntity implements Serializable
A ProblemHistory stores an occurred problem, in form of Message, recorded on a Movement.
Author:
Heiko Scherrer
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private Movement
    Reference to the Movement it belongs to.
    private Message
    The message to store in the history.

    Fields inherited from class org.ameba.integration.jpa.ApplicationEntity

    C_ID
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Dear JPA ...
     
    ProblemHistory(Movement movement, Message problem)
    Full constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    All fields
    Get the corresponding Movement.
    Get the problem.
    int
    All fields
    All fields

    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, setOl

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • movement

      private Movement movement
      Reference to the Movement it belongs to.
    • problem

      private Message problem
      The message to store in the history.
  • Constructor Details

    • ProblemHistory

      protected ProblemHistory()
      Dear JPA ...
    • ProblemHistory

      public ProblemHistory(Movement movement, Message problem)
      Full constructor.
      Parameters:
      movement - The Movement this problem initially occurred
      problem - The problem itself
  • Method Details

    • getProblem

      public Message getProblem()
      Get the problem.
      Returns:
      The problem
    • getMovement

      public Movement getMovement()
      Get the corresponding Movement.
      Returns:
      The movement
    • toString

      public String toString()
      All fields
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      All fields
      Overrides:
      hashCode in class org.ameba.integration.jpa.ApplicationEntity