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: Multiple Table Mapping Entity-Name HQL Problem
PostPosted: Fri Sep 10, 2010 10:31 pm 
Newbie

Joined: Tue Aug 31, 2010 10:22 pm
Posts: 3
This has probably been asked but the forum is so "smart" it removes all my search terms because they are too common without considering the possibility that the total combination might in fact be fairly uncommon. So sorry if this has been posted I just gave up on any kind of search.

When mapping one class to two tables using the entity-name property, specifying entity-name in HQL has no effect - i.e if you have a class "MyObject" mapped to "MyObject1" and "MyObject2" and you try to query for only "MyObject1" you get back matches from both tables. Does anyone know of a workaround for this issue short of having to hack each table to put basically a query discriminator column in each?

Thanks


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.