Hi marceltoma
If you have this code:
Code:
Criteria crit = HibernateUtil.getSession().createCriteria(conteudoVO.class).
add(Expression.eq("arvoreVO.estruturaArvoreVO.vchtipo",strTipo));
Hibernate will try to find the attribute
arvoreVO.estruturaArvoreVO.vchtipo within the class
conteudoVO. It seems like hibernate could not resolve this property. There could just be a minor misspelling. The first parameter to the eq method should be an attribute of the class supplied to criteria.
As I do not know, what 'conteudo' is, am not sure whether 'arvore' (=
tree?) could be an attribute. I will give an example in english:
Code:
HibernateUtil.getSession().createCriteria(Tree.class).
add(Expression.eq("leafColor","green"));
This will limit the criteria to the value
green for the attribute
leafColor of the class
Tree.
Hope this could help,
Kariem