SpatialRestrictions
当我从(例如)指定标准时SpatialRestrictions.intersects(propertyName, geometryObj)
,生成的 SQL 无效,因为列名已被别名并使用不正确:
生成的 SQL
SELECT this_.GEO_LOCATION as y10_
FROM schema.GEO this_
WHERE ( ST_intersects(y10_, 'SRID=4326;POLYGON(...)')
OR ST_intersects(y10_, 'SRID=4326;POLYGON(...)'))
有没有办法强制忽略投影别名并仅使用table_alias.column
?