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
FieldsModifier and TypeFieldDescriptionprivate MovementReference to theMovementit belongs to.private MessageThe message to store in the history.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDear JPA ...ProblemHistory(Movement movement, Message problem) Full constructor. -
Method Summary
Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKeyMethods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl
-
Field Details
-
movement
Reference to theMovementit 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:
equalsin classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()All fields- Overrides:
hashCodein classorg.ameba.integration.jpa.ApplicationEntity
-