Code example for HibernateException

0
			valueTransformer = UUIDTypeDescriptor.ToBytesTransformer.INSTANCE; 
		} 
		else { 
			throw new HibernateException( "Unanticipated return type [" + type.getReturnedClass().getName() + "] for UUID conversion" ); 
		} 
	} 
 
	public Serializable generate(SessionImplementor session, Object object) throws HibernateException { 
		return valueTransformer.transform( strategy.generateUUID( session ) ); 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java