4
我想請問如何這個MySQL查詢翻譯成一個Hibernate查詢:如何這個MySQL查詢轉換成一個Hibernate查詢
SELECT * FROM Cities WHERE WITHIN(GeomFromText('POINT(52.5 13.3)'), polygon);
或本
SELECT * FROM Cities WHERE MBRContains(polygon, GeomFromText('POINT(52.5 13.3)');
謝謝。 托馬斯
做這些條款意味着'WITHIN(GeomFromText( 'POINT(52.5 13.3)'),多邊形);'和'MBRContains(多邊形,GeomFromText('POINT(52.5 13.3)'); '? – Lion
http://dev.mysql.com/doc/refman/5.1/en/geometry-property-functions.html –
我不認爲原生Hibernate會做,但檢出http:// www.hibernatespatial.org/ – gtgaxiola