aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuicommon/synchronization/domain/FakeId.scala
blob: 38e442b7bfcb8495713a7840b2e24a6ae204acd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}