Code:
StringBuilder psql = new StringBuilder();
String s = "jerlad";
psql.append("Update Profile SET mobile =: mobile , address =: address , dateofbirth =: dateofbirth , country =: country"+
"Where profileusername = "+s+"");
Query queryupdate = getSession().createQuery(psql.toString());
for(int index=0; index<profileUpdate.length;index++)
{
queryupdate.setParameter(profileUpdate[index], profileupdateValue[index]);
}
int result = queryupdate.executeUpdate();
System.out.print("Update result"+ result);
How can i resolve this .?