I have the same problem!
You found the solution?
public abstract class Documento{
...
}
public class Proposicao extends Documento{
...
}
public class Veto extends Proposicao{
...
}
the error message when it executes the following code:
Code:
public List getListOrderTipo() throws HibernateException {
Session session = sessionFactory.openSession();
List list =
session.find(
"select obj from Proposicao obj order by obj.tipoProposicao");
session.flush();
session.close();
return list;
}
is:
Code:
net.sf.hibernate.QueryException: could not resolve property: tipoProposicao of: sl.model.Veto [select obj from sl.model.Veto obj order by obj.tipoProposicao]