@@ -0,0 +1,603 @@
+package org.opennms.netmgt.model;%0A%0Aimport org.hibernate.criterion.Criterion;%0Aimport org.hibernate.criterion.Restrictions;%0Aimport org.hibernate.type.StringType;%0A%0Apublic class OnmsRestrictions %7B%0A    private static final StringType STRING_TYPE = new StringType();%0A    %0A    /**%0A     * Performs an iplike match on the ipAddr column of the current table.%0A     * %0A     * @param value iplike match%0A     * @return SQL restriction for this iplike match%0A     */%0A    public static Criterion ipLike(String value) %7B%0A        return Restrictions.sqlRestriction(%22iplike(%7Balias%7D.ipAddr, ?)%22, value, STRING_TYPE);%0A    %7D%0A%7D%0A

Add our own Restrictions object like Hibernate, for OpenNMS-specific Restrictions. Right now, it provides a way to do an iplike match.