Guest User

Untitled

a guest
May 24th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. object Post {
  2. implicit val record: Record[Id[Post], Post] = new Record[Id[Post], Post] {
  3. val topic = "posts"
  4. def key(post: Post): Id[Post] = post.id
  5. def timestamp(post: Post): Long = post.updatedOn.toEpochMilli
  6. }
  7. }
Add Comment
Please, Sign In to add comment