-->
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: Why so many "null as" projections?
PostPosted: Wed Jul 14, 2010 4:36 am 
Regular
Regular

Joined: Thu Dec 10, 2009 10:53 am
Posts: 50
Hibernate uses a lot of null as <column-name> when querying an abstract feature;

Code:
[..]
   , null as ROHRLEITUNGSTYP_ID

   , MODIFICATIONDATE

   , null as NENNGROESSE

   , null as SCHWELLENHOEHEMAX

   , null as BEZUGSPUNKTHORIZONTAL_ID

   , null as EXISTENZPUMPE

   , 151 as clazz_

from GL.FIRMENART

union all

select

     null as DECKELFORM_ID

   , null as ABDECKUNGSKLASSE_ID

   , null as ANZAHLVERSORGTEGEBAEUDE

   , BESCHREIBUNG
[..]


Hibernate keeps all columns from the abstract class and nulls all irrelevant columns from the concrete classes.
Why does Hibernate keep the irrelevant columns?


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.