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
|
|