hibernate expects a logical expression for spatial relations