I have this code:
String hql ="from LanguageTranslation ltrans left join fetch ltrans.language_id where ltrans.keylabel = :keylabel and ltrans.language_id =:langID";
Query query = session.createQuery(hql);
query.setParameter("keylabel",key_label);
query.setParameter("langID", new Integer(languageID));
lTrans = (LanguageTranslation)query.uniqueResult();
Hibernate.initialize(lTrans.getTranslated_text());
session.getTransaction().commit();
s there something wrong with the syntax? Why am i having this error?:
org.hibernate.property.BasicPropertyAccessor
SEVERE: IllegalArgumentException in class: com.ibm.pli.databeans.Language, getter method of property: language_id
Exception in thread "main" org.hibernate.HibernateException: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.ibm.pli.databeans.Language.language_id
at com.ibm.pli.DAO.AbstractDAO.handleException(AbstractDAO.java:99)
at com.ibm.pli.DAO.LanguageTranslationDAO.getMessage(LanguageTranslationDAO.java:96)
at com.ibm.pli.test.TestManager.testRetrival(TestManager.java:30)
at com.ibm.pli.test.TestManager.main(TestManager.java:20)
|