Gustav Elmgren
06/02/2022, 9:36 AMColumn<EntityId<T>>
to ExpressionWithColumnType<T>
in some way?Entity.id.castTo(LongColumnType()
Would that be stupid?ExpressionWithColumnType<T>
, and it wont accept the id, but any other parameter. And it works if I use castTo
. But it seems a bit overkill to actually cast (in the generated SQL) it just so the typing works.Emil Kantis
06/02/2022, 10:53 AMGustav Elmgren
06/02/2022, 10:54 AMEmil Kantis
06/02/2022, 10:55 AMfun <T> method(expr: ExpressionWithColumnType<T>)
-> fun <T, S : ExpressionWithColumnType<T>> method(expr: S)
should do the trick, no?Column<T>
extends ExpressionWithColumnType<T>
Gustav Elmgren
06/02/2022, 10:58 AMType mismatch.
Required:
ExpressionWithColumnType<Long>
Found:
Column<EntityID<Long>>
<T : Comparable<T>, K : ExpressionWithColumnType<in T>>
, and T
is a simple Long. I guess I could transform it by using EntityId()
EntityId
. Thanks!