All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.trails.component.search.StringSearchField Maven / Gradle / Ivy

package org.trails.component.search;

import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Restrictions;

public abstract class StringSearchField extends SimpleSearchField
{

	@Override
	public void buildCriterion()
	{
		if (getValue() != null)
		{
			getCriteria().add(Restrictions.like(getPropertyDescriptor().getName(), (String) getValue(), MatchMode.ANYWHERE));
		}
	}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy