Code example for HibernateException

0
	public String extractLoggableRepresentation(T value) {
		return (value == null) ? "null" : value.toString();
	} 
 
	protected HibernateException unknownUnwrap(Class conversionType) {
		throw new HibernateException(
				"Unknown unwrap conversion requested: " + type.getName() + " to " + conversionType.getName()
		); 
	} 
 
	protected HibernateException unknownWrap(Class conversionType) {
		throw new HibernateException(
				"Unknown wrap conversion requested: " + conversionType.getName() + " to " + type.getName()
		); 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java