Sql CAST

21 views
Skip to first unread message

program...@gmail.com

unread,
Feb 20, 2019, 11:39:23 AM2/20/19
to Jinq

Is there any methods i can use in lambdas that will map to a sql CAST?

We need to compare a string "123" to a number 123.
If there is any other way to do this than sql cast then that could work aswell.

Jinq

unread,
Feb 20, 2019, 11:50:21 AM2/20/19
to Jinq
I don't think so. Jinq relies on JPA's JPQL for its queries, but JPQL's (and particularly Hibernate's) handling of types is pretty shaky, so they don't have proper support for casting. You would have to drop down to native queries for something like that.
Reply all
Reply to author
Forward
0 new messages