Announcement Announcement Module
Collapse
No announcement yet.
case insensitive search Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Read http://hibernate.org/hib_docs/v3/ref...teria-examples

    Comment

    Working...
    X