0
вот мой запросКак выполнить на запрос обновления с, где положение с помощью вызова шаблона спящего режима
StringBuilder queryString = new StringBuilder("update CloudSvrUsersSecQuestion c set c.secQuesAnswer=");
// it will call five times for 5 db recod the below query
for(CloudSvrUsersSecQuestion lisq:user.getListSecQuestion()) {
queryString.append("' ").append(lisq.getSecQuesAnswer()).append("' ").append("where c.secQuesId=").append(lisq.getSecQuesId());
}
// how to execute this query for updating in db below is my approach but its not correct
CloudSvrUsersSecQuestion my pojo class mapped with db
secQuesList = (List<CloudSvrUsersSecQuestion>)super.getHibernateTemplate().update(queryString.toString());
обновление, пожалуйста, помогите мне, как написать выполнить этот запрос
см. Мой ответ и проверьте, помогает ли он устранить вашу проблему. – Chaitanya