PDA

View Full Version : Support for polymorphic queries


acarasso
05-09-2007, 10:31 PM
It seems the findbynamed query method of the HibernateTemplate class does not support polymorphic queries. Ie quering unmapped objects that mapped object inherit from. Are there any plans to fix this or any known work arounds?
--Adam

acarasso
05-09-2007, 10:54 PM
Looking online It looks like I might need to "import my unmapped class" to get this to work. In my query.hbm.xml file I have pointed at the assembly and namespace in the hibernatemapping tag and set auto-import to true, but its still not working so any sugguestions on how I import this class name so the hql parser knows about it?