我有以下HQL:在一個Hibernate查詢中更新幾個列?
String hql = "UPDATE Buchung as b " +
"set STORNO = :Storno " +
"where ID = :BuchungID";
是否有可能更新一個以上的列在HQL?例如:
String hql = "UPDATE Buchung as b " +
"set STORNO = :Storno " +
"set NAME = :Name " +
......
"where ID = :BuchungID";
我知道如何做到這一點在MSSQL中,但我不知道如何做到這一點在休眠。
感謝工作像魅力! – Paks