String sql_hql=select x where JadVillageEntity x JadNatvillageEntity y where xC_ID=yR_VILLAGE_ID and yC_ID= and yC_DELETED=0 and xC_DELETED=0 ; JadVillageEntity village = __fir
The error message is indicating that there is a syntax error in the SQL/HQL query. The "*" symbol is not allowed in the select clause.
To fix this error, you need to specify the specific columns you want to select from the table instead of using "*". For example, if you want to select all columns from the JadVillageEntity table, you can modify the query as follows:
String sql_hql="select x from JadVillageEntity x, JadNatvillageEntity y where x.C_ID=y.R_VILLAGE_ID and y.C_ID=? and y.C_DELETED=0 and x.C_DELETED=0";
In this modified query, "x" represents the alias for the JadVillageEntity table, and "select x" means selecting all columns from the JadVillageEntity table.
Note: Make sure to adjust the query according to your specific database schema and table/column names
原文地址: http://www.cveoy.top/t/topic/i0Ip 著作权归作者所有。请勿转载和采集!