Code example for MappingException

0
		 
		try { 
			this.clazz = Context.loadClass(enumClassName);
		} 
		catch (ClassNotFoundException e) {
			throw new MappingException("enumClass " + enumClassName + " not found", e);
		} 
	} 
	 
	public int[] sqlTypes() { 
		return SQL_TYPES;
	} 
	 
	public Class<?> returnedClass() {
		return clazz;
	} 
	 
	@SuppressWarnings("unchecked") 
	public Object nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws HibernateException, SQLException {
		String name = resultSet.getString(names[0]);