I am currently using Hibernate 3.
Currently I have an Item with a mapped joined-sublcass of Gear. What I would like to do is be able to search by Gear only on a Criteria class. After reviewing the documentation:
http://www.hibernate.org/hib_docs/v3/re ... teria.html
I am unable to see how to correctly create a Criteria object for this. Because the mapped type is Itme, when creating a Gear criteria object Hibernate throws an error about an unknown mapping type.
The criteria object is created with the following:
Criteria criteria = HibernateHelper.getSession().createCriteria(Item.class);
where I want to be able to do:
Criteria criteria = HibernateHelper.getSession().createCriteria(Gear.class);
Any help is great, thanks!