code: public static void validateBindParametersTypes(Parameters parameters) {
  		final Iterator<Parameter> it = parameters.iterator();
  
  		while (it.hasNext()) {
  			final Parameter param = it.next();
  			final Class<?> paramType = param.getType();
  
  			if (!(param.isSpecialParameter() || SupportedCoreTypes
  					.isSupported(paramType))) {
  				throw (new IllegalArgumentException("Type " + paramType
  						+ " not supported as an annotated query parameter!"));
  			}
  		}
  	}
docs: Supported types: primitives & core java types (Date, primitive arrays,
  primitive wrappers)