I fix problem buy changing hibernate version
from Hibernate-Version: 3.0.5
to Hibernate-Version: 3.2.1.ga
HIbernate org.hibernate.HibernateException: Errors in named queries
-
14-10-2022 - |
Domanda
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.
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow