> hi-
>
[quoted text clipped - 13 lines]
> int count = query.executeUpdate();
> tx.commit();
I don't get it. I changed "delete" in my query to "delete from", but
it still gives me the same error message (although it now shows "from"
in my query.
Are you using Hibernate 3.0.5?
3rdshiftcoder - 27 Mar 2007 00:15 GMT
> I don't get it. I changed "delete" in my query to "delete from", but
> it still gives me the same error message (although it now shows "from"
> in my query.
>
> Are you using Hibernate 3.0.5?
no. i am using Hibernate 3.2.0beta8.
i use pojos with annotations.
delete [delete ReqField where fieldName = :fieldName and value
= :value]
String hql = "delete ReqField " +
"where fieldName = :fieldName and value
= :value";
it has to be delete from TABLE instead of delete from ReqField
or really the representation of the table (the related pojo object).
i think ReqField might be a typo and i apologize if that is the case.
if you have any more questions, i can try to help but contact me
at thirdshiftcoder@yahoo.com as this is off-topic for the group.
having said that, i hope someone in the group offers to help you here
even though it is off topic. i am not a hibernate expert. not even close.
later
3rdshiftcoder - 27 Mar 2007 00:17 GMT
> I don't get it. I changed "delete" in my query to "delete from", but
> it still gives me the same error message (although it now shows "from"
> in my query.
>
> Are you using Hibernate 3.0.5?
no. i am using Hibernate 3.2.0beta8.
i use pojos with annotations.
delete [delete ReqField where fieldName = :fieldName and value
= :value]
String hql = "delete ReqField " +
"where fieldName = :fieldName and value
= :value";
it has to be delete from TABLE instead of delete from ReqField
or really the representation of the table (the related pojo object).
i think ReqField might be a typo and i apologize if that is the case.
if you have any more questions, i can try to help but contact me
at thirdshiftcoder@yahoo.com as this is off-topic for the group.
having said that, i hope someone in the group offers to help you here
even though it is off topic. i am not a hibernate expert. not even close.
later