Currently, org.hibernate.spatial.dialect.postgis.PostgisDialect is defined as extending org.hibernate.dialect.PostgreSQL82Dialect, forcing users to create a copy of the dialect if features from PostgreSQL 8.2+ are required. The Dialect could either be changed to extend org.hibernate.dialect.PostgreSQL94Dialect or several Postgis dialects for different PostgreSQL versions could be created. It would however be a good idea to not duplicate the definition of the spatial functions which do not change between the PostgreSQL versions. |