Gustav Elmgren
06/02/2022, 9:36 AMColumn<EntityId<T>> to ExpressionWithColumnType<T> in some way?Gustav Elmgren
06/02/2022, 9:38 AMEntity.id.castTo(LongColumnType()
Would that be stupid?Gustav Elmgren
06/02/2022, 10:09 AMExpressionWithColumnType<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?Emil Kantis
06/02/2022, 10:55 AMColumn<T> extends ExpressionWithColumnType<T>Gustav Elmgren
06/02/2022, 10:58 AMType mismatch.
Required:
ExpressionWithColumnType<Long>
Found:
Column<EntityID<Long>>Gustav Elmgren
06/02/2022, 11:00 AMGustav Elmgren
06/02/2022, 11:01 AM<T : Comparable<T>, K : ExpressionWithColumnType<in T>>, and T is a simple Long. I guess I could transform it by using EntityId()Gustav Elmgren
06/02/2022, 11:05 AMEntityId. Thanks!