Results 1 to 2 of 2

Thread: Help to use getHibernateTemplate().find

  1. #1
    Join Date
    Jan 2013
    Posts
    2

    Default Help to use getHibernateTemplate().find

    How can I use getHibernateTemplate().find to do the following select:

    select * from DmControl where status in ('Open','Close')

    Regards.

  2. #2
    Join Date
    Apr 2008
    Location
    Seville, Spain
    Posts
    132

    Default

    For example:

    Code:
    String query = "SELECT * FROM DmControl WHERE status in (?, ?)";
    List<Map<String, Object>> rs = template.queryForList(query, "Open", "Close");
    Jose Luis Martin
    Freelance Senior Consultant
    JDAL - Java Database Application Library

Posting Permissions

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