Package org.openwms.wms.movements.impl
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
Modifier and TypeFieldDescriptionprivate Movement
Reference to theMovement
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
ModifierConstructorDescriptionprotected
Dear JPA ...ProblemHistory
(Movement movement, Message problem) Full constructor. -
Method Summary
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
-
Field Details
-
movement
Reference to theMovement
it belongs to. -
problem
The message to store in the history.
-
-
Constructor Details
-
ProblemHistory
protected ProblemHistory()Dear JPA ... -
ProblemHistory
Full constructor.- Parameters:
movement
- The Movement this problem initially occurredproblem
- The problem itself
-
-
Method Details
-
getProblem
Get the problem.- Returns:
- The problem
-
getMovement
Get the correspondingMovement
.- Returns:
- The movement
-
toString
All fields -
equals
All fields- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()All fields- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-