Hi don't understand the problem with namedQuery

<query name="updtae.payment.paymentDate.by.txn_id">
    <![CDATA[
    update Payment p set p.paymentDate =:payDate WHERE p.txnId=:txnId]]>
</query>

getting exception HIbernate org.hibernate.HibernateException: Errors in named queries

no columns same us entity Name It works fine in local And don't on production server

getSession().getNamedQuery("updtae.payment.paymentDate.by.txn_id").setTimestamp("payDate",paymentDate ).setString("txnId", txnId).executeUpdate();

Here is call of named query.

有帮助吗?

解决方案

I fix problem buy changing hibernate version
from Hibernate-Version: 3.0.5 to Hibernate-Version: 3.2.1.ga

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top