From 1bb4b39dc9f407238307a121b2846ca79e3636e7 Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Tue, 14 Nov 2017 18:16:50 +0700 Subject: Fixed MedicalRecordHistory and DocumentHistory --- src/main/scala/xyz/driver/pdsuidomain/entities/DocumentHistory.scala | 4 ++-- .../scala/xyz/driver/pdsuidomain/entities/MedicalRecordHistory.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/DocumentHistory.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/DocumentHistory.scala index 81fa240..5c96f94 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/entities/DocumentHistory.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/entities/DocumentHistory.scala @@ -26,7 +26,7 @@ object DocumentHistory { case object New extends State private implicit def stateToName(state: State): (State, String) = { - state -> state.getClass.getSimpleName + state -> state.toString } private val stateToName = immutable.Map[State, String]( @@ -67,7 +67,7 @@ object DocumentHistory { case object ReadDocument extends Action private implicit def stateToName(action: Action): (Action, String) = { - action -> action.getClass.getSimpleName + action -> action.toString } private val actionToName = immutable.Map[Action, String]( diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/MedicalRecordHistory.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/MedicalRecordHistory.scala index 66fd5b0..f08f3de 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/entities/MedicalRecordHistory.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/entities/MedicalRecordHistory.scala @@ -28,7 +28,7 @@ object MedicalRecordHistory { case object Flag extends State private implicit def stateToName(state: State): (State, String) = { - state -> state.getClass.getSimpleName + state -> state.toString } private val stateToName = immutable.Map[State, String]( @@ -74,7 +74,7 @@ object MedicalRecordHistory { case object ReadRecord extends Action private implicit def stateToName(action: Action): (Action, String) = { - action -> action.getClass.getSimpleName + action -> action.toString } private val actionToName = immutable.Map[Action, String]( -- cgit v1.2.3