i guess my hibernator is configured ok since i followed all instructions and also because it generates *.hbm.xml ok.
So my problem is when i try to run this query:
from Entidade entidade
gives an error:
net.sf.hibernate.QueryException: in expected: entidade [from Entidade entidade]
at net.sf.hibernate.hql.FromParser.token(FromParser.java:102)
at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87)
at net.sf.hibernate.hql.PreprocessingParser.end(PreprocessingParser.java:139)
at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:30)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:146)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:133)
at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:352)
at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:330)
at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1368)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1332)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1322)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1314)
at net.sf.hibernator.HibernateConnection.query(HibernateConnection.java:188)
at net.sf.hibernator.views.QueryView$QueryTask.run(QueryView.java:255)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Can someone pls help me?
thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i guess my hibernator is configured ok since i followed all instructions and also because it generates *.hbm.xml ok.
So my problem is when i try to run this query:
from Entidade entidade
gives an error:
net.sf.hibernate.QueryException: in expected: entidade [from Entidade entidade]
at net.sf.hibernate.hql.FromParser.token(FromParser.java:102)
at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87)
at net.sf.hibernate.hql.PreprocessingParser.end(PreprocessingParser.java:139)
at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:30)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:146)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:133)
at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:352)
at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:330)
at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1368)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1332)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1322)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1314)
at net.sf.hibernator.HibernateConnection.query(HibernateConnection.java:188)
at net.sf.hibernator.views.QueryView$QueryTask.run(QueryView.java:255)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Can someone pls help me?
thanks in advance