blob: 279ef38e9d726728171e7861d97a2ed80148d0f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package xyz.driver.pdsuidomain.entities
import java.time.LocalDateTime
import xyz.driver.core.auth.User
import xyz.driver.pdsuicommon.domain.LongId
import xyz.driver.pdsuicommon.logging._
final case class DocumentIssue(id: LongId[DocumentIssue],
userId: xyz.driver.core.Id[User],
documentId: LongId[Document],
startPage: Option[Double],
endPage: Option[Double],
lastUpdate: LocalDateTime,
isDraft: Boolean,
text: String,
archiveRequired: Boolean)
object DocumentIssue {
implicit def toPhiString(x: DocumentIssue): PhiString = {
import x._
phi"DocumentIssue(id=$id, userId=${Unsafe(userId)}, documentId=$documentId)"
}
}
|