Hibernate version: 2.8
Name and version of the database you are using: MySql 4.0.21
Mapping documents:
Here are the important parts:
Code:
<hibernate-mapping package="com.ch.edb.product.domain">
<class name="Product" table="Product">
     <id name="productId" column="product_id" type="long" unsaved-value="0">
     <generator class="native"/>
     </id>
...
<joined-subclass name="com.ch.edb.product.video.domain.Video" table="VideoProduct">
     <key column="product_id"/>   
...
</joined-subclass>
...
<joined-subclass name="com.ch.edb.product.videogame.domain.VideoGame" table="VideoGameProduct">
     <key column="product_id"/>
</joined-subclass>
</class>
</hibernate-mapping>
I have a problem when doing an HQL query.  The following is the query:
Code:
from com.ch.edb.product.video.domain.Video v 
where v.clearanceRequired='Y' 
and v.title like :title 
and v.studio = :studio 
and v.clearance.clearedCanada='N' 
and v.clearance.clearedQuebec='N' 
and v.clearance.clearedUS='N' 
The problem is that in the stack trace, hibernate shows me an error and prints out the hql where the error takes place.  The hql printed out is this:
Code:
from com.ch.edb.product.videogame.domain.VideoGame v 
where v.clearanceRequired='Y' 
and v.title like :title 
and v.studio = :studio 
and v.clearance.clearedCanada='N'
and v.clearance.clearedQuebec='N'
and v.clearance.clearedUS='N'
It seems that hibernate has changed
Code:
com.ch.edb.product.video.domain.Video 
to 
com.ch.edb.product.videogame.domain.VideoGame. 
If I comment out the VideoGame joined-subclass, the query works fine.  Did I perhaps find a bug with the hql parser?