Skip to content

Commit

Permalink
HHH-6510 Minor cleanups; code formatting changed to Hibernate convent…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
maesenka authored and sebersole committed Apr 24, 2015
1 parent 812da6e commit 79d02e2
Show file tree
Hide file tree
Showing 72 changed files with 9,067 additions and 7,915 deletions.
1,111 changes: 574 additions & 537 deletions hibernate-spatial/src/main/java/org/hibernate/spatial/Circle.java

Large diffs are not rendered by default.

Expand Up @@ -29,6 +29,7 @@
package org.hibernate.spatial; package org.hibernate.spatial;


import com.vividsolutions.jts.geom.Geometry; import com.vividsolutions.jts.geom.Geometry;

import org.hibernate.type.AbstractSingleColumnStandardBasicType; import org.hibernate.type.AbstractSingleColumnStandardBasicType;


/** /**
Expand All @@ -38,29 +39,29 @@
*/ */
public class GeometryType extends AbstractSingleColumnStandardBasicType<Geometry> { public class GeometryType extends AbstractSingleColumnStandardBasicType<Geometry> {


public static final GeometryType INSTANCE = new GeometryType(); public static final GeometryType INSTANCE = new GeometryType();


@Override @Override
public String[] getRegistrationKeys() { public String[] getRegistrationKeys() {
return new String[]{ return new String[] {
com.vividsolutions.jts.geom.Geometry.class.getCanonicalName(), com.vividsolutions.jts.geom.Geometry.class.getCanonicalName(),
com.vividsolutions.jts.geom.Point.class.getCanonicalName(), com.vividsolutions.jts.geom.Point.class.getCanonicalName(),
com.vividsolutions.jts.geom.Polygon.class.getCanonicalName(), com.vividsolutions.jts.geom.Polygon.class.getCanonicalName(),
com.vividsolutions.jts.geom.MultiPolygon.class.getCanonicalName(), com.vividsolutions.jts.geom.MultiPolygon.class.getCanonicalName(),
com.vividsolutions.jts.geom.LineString.class.getCanonicalName(), com.vividsolutions.jts.geom.LineString.class.getCanonicalName(),
com.vividsolutions.jts.geom.MultiLineString.class.getCanonicalName(), com.vividsolutions.jts.geom.MultiLineString.class.getCanonicalName(),
com.vividsolutions.jts.geom.MultiPoint.class.getCanonicalName(), com.vividsolutions.jts.geom.MultiPoint.class.getCanonicalName(),
com.vividsolutions.jts.geom.GeometryCollection.class.getCanonicalName() com.vividsolutions.jts.geom.GeometryCollection.class.getCanonicalName()
}; };
} }


public GeometryType() { public GeometryType() {
super(SpatialGeometrySqlTypeDescriptor.INSTANCE, SpatialGeometryJavaTypeDescriptor.INSTANCE); super( SpatialGeometrySqlTypeDescriptor.INSTANCE, SpatialGeometryJavaTypeDescriptor.INSTANCE );
} }


@Override @Override
public String getName() { public String getName() {
return "Geometry"; return "Geometry";
} }


} }

0 comments on commit 79d02e2

Please sign in to comment.