diff options
author | Kseniya Tomskikh <ktomskih@datamonsters.co> | 2017-10-03 16:57:48 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 16:57:48 +0700 |
commit | 53c149e5de2ab137967ce8068e0e249be3a99422 (patch) | |
tree | a87d24b1b5d6489576f00fe446f05b5110d62cc0 /src/main/scala/xyz/driver/pdsuicommon/synchronization/domain | |
parent | 1913870abec9e31d080f6858d0fc296445852cc6 (diff) | |
parent | d0e3c6f37347142a3ef5eab871dde47ea70af304 (diff) | |
download | rest-query-53c149e5de2ab137967ce8068e0e249be3a99422.tar.gz rest-query-53c149e5de2ab137967ce8068e0e249be3a99422.tar.bz2 rest-query-53c149e5de2ab137967ce8068e0e249be3a99422.zip |
Merge pull request #34 from drivergroup/synch-refactor
Common code for synchronizers
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuicommon/synchronization/domain')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala | 14 |
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) +} |