List of usage examples for org.apache.wicket.extensions.markup.html.repeater.data.table PropertyColumn getPropertyExpression
public String getPropertyExpression()
From source file:net.databinder.models.hib.CriteriaColumnFilter.java
License:Open Source License
public void build(Criteria criteria) { for (IColumn col : columns) { if (col instanceof PropertyColumn) { PropertyColumn propCol = (PropertyColumn) col; String property = propCol.getPropertyExpression(); Object value = PropertyResolver.getValue(property, bean); if (value != null) { if (value instanceof String) criteria.add(Restrictions.ilike(property, (String) value, MatchMode.ANYWHERE)); else criteria.add(Restrictions.eq(property, value)); }//from ww w . ja v a 2 s .c om } } }