How do I write hql query with cast?

后端 未结 4 602
悲&欢浪女
悲&欢浪女 2020-12-06 09:04

I need to combine 2 tables using hql, both are having common column, but table1 common column is integer and table2 common column is <

4条回答
  •  醉话见心
    2020-12-06 09:33

    Just noticed that you are using JPA, there you can not cast or convert datatpes. In the query language, only values of the same type can be compared! read in http://download.oracle.com/javaee/5/tutorial/doc/bnbuf.html#bnbvu

提交回复
热议问题