Skip to content

Commit

Permalink
Merge pull request #337 from nafg/entitytable--defining-key-as-a-cast…
Browse files Browse the repository at this point in the history
…-makes-it-somew

EntityTable: defining key as a cast makes it somewhat usable
  • Loading branch information
nafg authored Jan 23, 2024
2 parents 35dca2b + b25a374 commit 89d677b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java system
2 changes: 1 addition & 1 deletion src/main/scala/slick/additions/AdditionsProfile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ trait AdditionsProfile { this: JdbcProfile =>
def Ent(v: Value) = new KeylessEntity[Key, Value](v)

@deprecated("Using key in an EntityTable is unsupported and may lead to crashes", "0.13.0")
override def key = super.key
override def key = lookup.asColumnOf[Key]

def tableQuery: Query[EntityTable[K, V], this.KEnt, Seq]

Expand Down

0 comments on commit 89d677b

Please sign in to comment.