net.sf.hibernate.QueryException: could not resolve property: employees [where ? in elements(this.employees)]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Hibernate JIRA by Alessandro Vernet, 1 year ago
could not resolve property: employees [where ? in elements(this.employees)]
via Hibernate JIRA by Alessandro Vernet, 1 year ago
could not resolve property: employees [where ? in elements(this.employees)]
net.sf.hibernate.QueryException: could not resolve property: employees [where ? in elements(this.employees)]
at net.sf.hibernate.persister.AbstractPropertyMapping.getPropertyType(AbstractPropertyMapping.java:33)
at net.sf.hibernate.hql.PathExpressionParser.getPropertyType(PathExpressionParser.java:242)
at net.sf.hibernate.hql.PathExpressionParser.token(PathExpressionParser.java:122)
at net.sf.hibernate.hql.WhereParser.doPathExpression(WhereParser.java:333)
at net.sf.hibernate.hql.WhereParser.doToken(WhereParser.java:365)
at net.sf.hibernate.hql.WhereParser.token(WhereParser.java:250)
at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87)
at net.sf.hibernate.hql.PreprocessingParser.end(PreprocessingParser.java:142)
at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:30)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:148)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:135)
at net.sf.hibernate.hql.FilterTranslator.compile(FilterTranslator.java:25)
at net.sf.hibernate.impl.SessionFactoryImpl.getFilter(SessionFactoryImpl.java:269)
at net.sf.hibernate.impl.SessionImpl.getFilterTranslator(SessionImpl.java:3149)
at net.sf.hibernate.impl.SessionImpl.filter(SessionImpl.java:3169)
at net.sf.hibernate.impl.SessionImpl.filter(SessionImpl.java:3109)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.