Hibernate version: 3.3.1.GA
Name and version of the database you are using: Oracle 10
I have an abstract non-mapped class (ImportacionDatoEntidad) with 4 childrens, whose mappings look like this:
Code:
<class name="PronosticoProducto"
table="PRONOSTICO_PRODUCTO" polymorphism="implicit">
<id name="idPronosticoProducto" type="long" column="ID_PRONOSTICO_PRODUCTO">
<generator class="sequence">
<param name="sequence">PRONOSTICO_PRODUCTO_SEQ</param>
</generator>
</id>
...[more fields]
</class>
If i run this query
Code:
select count(*) from ImportacionDatoEntidad
,
i expect that the aggregation function executes once for each of the 4 childrens, and I get a single row with the total count. But instead, i get 4 records, one for each children of the abstract class with the count of each entity separatelly.
I think this behaviour is not the expected. Am I wrong? Is this a Bug?
Regards