aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala
diff options
context:
space:
mode:
authorMarvin Bertin <marvin.bertin@gmail.com>2017-10-03 13:08:00 -0700
committerMarvin Bertin <marvin.bertin@gmail.com>2017-10-03 13:08:00 -0700
commit0653b90dddc294fddb0e81059aef00b202113d78 (patch)
tree3d8abb424b0f0495f1cbb18849184dd20d6897fc /src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala
parent5750f2f3633e75f2f96d6a36264ab4b8f3fec7d2 (diff)
parenta321a978353439fc516b0f2016c28fb32ba1b7ae (diff)
downloadrest-query-0653b90dddc294fddb0e81059aef00b202113d78.tar.gz
rest-query-0653b90dddc294fddb0e81059aef00b202113d78.tar.bz2
rest-query-0653b90dddc294fddb0e81059aef00b202113d78.zip
Merge branch 'master' into add-slot-eligibility-arms
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala b/src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala
new file mode 100644
index 0000000..38e442b
--- /dev/null
+++ b/src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala
@@ -0,0 +1,14 @@
+package xyz.driver.pdsuicommon.synchronization.domain
+
+/*
+ It is like an Id for entities those haven't an Id, but should be unique.
+ For example,
+ RawArm has the name, the kind and the intervention fields.
+ It has not an Id, but should be identified by the name field.
+ So, the name field is a fake id for RawArm.
+ */
+final case class FakeId(value: String)
+
+object FakeId {
+ implicit val ordering: Ordering[FakeId] = Ordering.by(_.value)
+}