0

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

4

1 回答 1

0

我通过传递"this." + propertyNameSpatialRestriction.

于 2015-08-03T19:37:35.157 回答