-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Aggregate function operating an abstract entity
PostPosted: Fri Apr 03, 2009 2:07 pm 
Newbie

Joined: Mon Sep 10, 2007 11:59 am
Posts: 3
Location: BA, Argentina
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.