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?