posted 14 years ago
Hi,
While triying to execute an update query using native SQL ,i'm getting an exception as follows.
java.lang.UnsupportedOperationException: Update queries only supported through HQL at org.hibernate.impl.AbstractQueryImpl.executeUpdate(AbstractQueryImpl.java:607)
My code is like
I can change to HQL, but I like to know why this exception is thrown.
Why is native SQL for update not supported by Hibernate.
Thanks in Advance
Chandrasekhar S
"Luck is when opportunity meets preparation"