Code example for QueryException

0
		return type; 
	} 
 
	protected final QueryException propertyException(String propertyName) throws QueryException { 
		return new QueryException( "could not resolve property: " + propertyName + " of: " + getEntityName() ); 
	} 
 
	public String[] getColumnNames(String propertyName) { 
		String[] cols = (String[]) columnsByPropertyPath.get(propertyName); 
		if (cols==null) { 
			throw new MappingException("unknown property: " + propertyName); 
		} 
		return cols; 
	} 
 
	public String[] toColumns(String alias, String propertyName) throws QueryException { 
		//TODO: *two* hashmap lookups here is one too many... 
		String[] columns = (String[]) columnsByPropertyPath.get(propertyName); 
		if ( columns == null ) { 
			throw propertyException( propertyName );