Announcement Announcement Module
Collapse
No announcement yet.
Help to use getHibernateTemplate().find Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    For example:

    Code:
    String query = "SELECT * FROM DmControl WHERE status in (?, ?)";
    List<Map<String, Object>> rs = template.queryForList(query, "Open", "Close");

    Comment

    Working...
    X