From 5dc7757ebc2a3e2ead0a7bdaa551372bbfef76eb Mon Sep 17 00:00:00 2001 From: Naftoli Gugenheim <98384+nafg@users.noreply.github.com> Date: Mon, 22 Jan 2024 22:19:07 -0500 Subject: [PATCH] EntityKey#asKeyOf --- .../src/main/scala/slick/additions/entity/Entity.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/slick-additions-entity/src/main/scala/slick/additions/entity/Entity.scala b/slick-additions-entity/src/main/scala/slick/additions/entity/Entity.scala index 7fc8435..646df90 100644 --- a/slick-additions-entity/src/main/scala/slick/additions/entity/Entity.scala +++ b/slick-additions-entity/src/main/scala/slick/additions/entity/Entity.scala @@ -33,6 +33,7 @@ case class EntityKey[K, +A](override val key: K) extends Lookup[K, A] { override def updated[B](value: B) = ModifiedEntity(key, value) override def widen[B >: A]: EntityKey[K, B] = transform(identity) override def toEntityKey = this + def asKeyOf[B] = copy[K, B]() } sealed trait Entity[K, +A] extends EntityRef[K, A] {