-->
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.  [ 2 posts ] 
Author Message
 Post subject: discriminator force="true", and get()
PostPosted: Sat Jan 24, 2004 7:53 pm 
Beginner
Beginner

Joined: Wed Oct 01, 2003 3:47 pm
Posts: 44
Hello,

<discriminator... force="true"/>

seems to solve my particular problem. That is, I need it to always use the discriminator when accessing/loading objects.

After testing, though, it only seems to do as the documentation describes when using iterate or find. When using "get()", the discriminator is not included in the SQL query generated -- it only uses the id.

Is this correct functionality that force="true" only works on queries, or am I missing something?

Thanks,

Ryan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 24, 2004 11:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is correct. THere is no need for any other column when doing a load by id.


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

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.