search

Home  >  Q&A  >  body text

java - Is hibernate's setString method obsolete?

setString has strikethrough..
Is there any alternative?

高洛峰高洛峰2805 days ago782

reply all(2)I'll reply

  • 三叔

    三叔2017-06-10 09:51:04

    session.createQuery(HQL).setParameter("","");

    reply
    0
  • 阿神

    阿神2017-06-10 09:51:04

    Just look at the Javadoc and you will know. In Eclipse, press the F2 key or move the mouse up.

    Also, it should be setString(1, ...).

    reply
    0
  • Cancelreply