org.hibernate.spatial.criteria.internal.JTSSpatialCriteriaExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-spatial Show documentation
Show all versions of hibernate-spatial Show documentation
Integrate support for Spatial/GIS data into Hibernate O/RM
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.spatial.criteria.internal;
import org.hibernate.query.criteria.HibernateCriteriaBuilder;
import org.hibernate.query.criteria.spi.CriteriaBuilderExtension;
import org.hibernate.spatial.criteria.JTSSpatialCriteriaBuilder;
/**
* @author Marco Belladelli
*/
public class JTSSpatialCriteriaExtension implements CriteriaBuilderExtension {
@Override
public HibernateCriteriaBuilder extend(HibernateCriteriaBuilder cb) {
return new JTSSpatialCriteriaBuilderImpl( cb );
}
@Override
public Class extends HibernateCriteriaBuilder> getRegistrationKey() {
return JTSSpatialCriteriaBuilder.class;
}
}