org.hibernate.spatial.criteria.internal.GeolatteSpatialCriteriaExtension 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.GeolatteSpatialCriteriaBuilder;
/**
* @author Marco Belladelli
*/
public class GeolatteSpatialCriteriaExtension implements CriteriaBuilderExtension {
@Override
public HibernateCriteriaBuilder extend(HibernateCriteriaBuilder cb) {
return new GeolatteSpatialCriteriaBuilderImpl( cb );
}
@Override
public Class extends HibernateCriteriaBuilder> getRegistrationKey() {
return GeolatteSpatialCriteriaBuilder.class;
}
}