-->
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: discriminator column
PostPosted: Mon Feb 09, 2009 10:07 am 
Newbie

Joined: Sat Jun 14, 2008 5:45 am
Posts: 3
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


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.