Results 1 to 2 of 2

Thread: case insensitive search

  1. #1
    Join Date
    Nov 2005
    Posts
    148

    Question case insensitive search

    Hi,

    I have an Object of class ContentObjectModel, which has one property named "name".now i want to search records which has named abc or ABC or aBC or ABc. So how can i search can ignorenocase search in dao?


    following is my dao code:

    public ArrayList<ContentObjectModel> find(ContentObjectModel contentObjectModel) {

    List list = getHibernateTemplate().findByExample(contentObject Model);
    if(list != null)
    return (ArrayList<ContentObjectModel>) list;

    return null;
    }

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •