Ignore:
Timestamp:
May 17, 2011, 10:57:14 AM (10 years ago)
Author:
robert@…
Message:

Made searching in text case insensitive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/groovy/dbnp/query/Search.groovy

    r1822 r1850  
    152152                }
    153153               
    154                 println fullHQL;
    155                
    156154                // Search in all entities
    157155                resultsFound = addWildcardConditions( fullHQL, entityNames )
     
    160158                }
    161159               
    162                 println fullHQL;
    163 
    164160                // Combine all parts to generate a full HQL query
    165161                def hqlQuery = selectClause + " " + fullHQL.from + ( fullHQL.where ? "  WHERE " + fullHQL.where.join( " " + searchMode.toString() + " "  ) : "" );
     
    586582         * This method is needed because hibernate contains a bug in the HQL INDEX() function.
    587583         * See also Criterion.manyToManyWhereCondition and
    588          *http://opensource.atlassian.com/projects/hibernate/browse/HHH-4615
     584         * http://opensource.atlassian.com/projects/hibernate/browse/HHH-4615
    589585         *
    590586         * @param entities                      List of entities
     
    594590        protected filterForComplexCriteria( def entities, def entityCriteria ) {
    595591                def complexCriteria = entityCriteria.findAll { it.isComplexCriterion() }
     592
    596593                if( complexCriteria ) {
    597594                        def checkCallback = { entity, criterion ->
Note: See TracChangeset for help on using the changeset viewer.