I need to combine 2 tables using hql, both are having common column, but table1 common column is integer and table2 common column is <
table1
integer
table2
I had to cast it to String like so :
@Query( value = "select new com.api.models.DResultStatus("+ "cast(ds.demoId as java.lang.String),cast(ds.comp as java.lang.String),cast(ds.dc as java.lang.String),cast(be.buildUrl as java.lang.String)")