hibernate/hibernate-tools — pull request #38 by srstclair (2013-03-16 03:52:55+00:00)
Title: Simple fix for correctly non-primative Java types

This is a simple fix to allow Hibernate Tools' JavaTypeFromValueVisitor to determine the correct Java type for non-primitive types. I noticed the problem when trying to use Hibernate Tools 4.0.0-CR1 with Hibernate Spatial 4.0-M1. org.hibernate.spatial.GeometryType is now a [BasicType](http://www.hibernatespatial.org/apidocs-hs4/org/hibernate/spatial/GeometryType.html) instead of a [UserType](http://www.hibernatespatial.org/apidocs/org/hibernatespatial/GeometryUserType.html).

I'm not sure if this change is in the right place (maybe Cfg2JavaTool.isNonPrimitiveTypeName should change? Or maybe Hibernate Spatial 4.x has a problem?) but all tests pass with this change (primitives are still returned as primitives) and GeometryType returns Geometry now as expected.