Hibernate ORM LikeExpression - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM LikeExpression class.

This code example shows how to use the following methods:
package org.hibernate.test.criteria; 
import org.hibernate.criterion.Criterion; 
import org.hibernate.criterion.LikeExpression; 
 
public class StringExpression extends LikeExpression { 
    private final static Character ESCAPE_CODE = new Character( '\\' ); 
 
    protected StringExpression( String property, String value, 
            boolean ignoreCase ) { 
        super( property, value, ESCAPE_CODE, ignoreCase ); 
    } 
 
    public static Criterion stringExpression( String propertyName, 
            String value, boolean ignoreCase ) { 
        return new StringExpression( propertyName, value, ignoreCase ); 
    } 
} 

4
CodeRank
Experience pair programming with AI  Get Codota for Java