Hi,
i got a question on discriminator columns.
Lets say you have a table storing information on cars of different vendors...bmw, chrysler, toyota and this table has a discriminator column vendor_dscr.
So if you query a row for a bmw entity hibernate will generate alias names including bmw and a where clause like vendor_dscr="bmw".
This behavior leads to unnecessary statements in the database cache.
Is it possible to configure hibernate in a way that it uses the same alias for all different entities ?
or at least, is it possible to configure hibernate in a was that it uses a bind variable for the discriminator column when querying a row ?
regards
Jens
|