-->
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: Unknown column error using inheritance
PostPosted: Fri Jul 16, 2010 6:53 am 
Newbie

Joined: Fri Jul 16, 2010 6:29 am
Posts: 5
Hi there,

I am receiving an Unknown column error when adding a where clause to a collection

Here is the snippet of my collection:
<set name="activeItems" sort="unsorted" table="SUB_ITEM" where="STATUS='ACTIVE'">
<key column="PRODUCT_ID"/>
<one-to-many class="SubItem"/>
</set>

The column "STATUS" is part of the table ITEM and class Item. I would expect inheritance to find the column STATUS within the parent table.

If I change the column to something that is available in the child table then it all works fine.

Anyone have any thoughts?

Many thanks in advance.


Top
 Profile  
 
 Post subject: Re: Unknown column error using inheritance
PostPosted: Wed Jul 21, 2010 4:07 am 
Newbie

Joined: Fri Jul 16, 2010 6:29 am
Posts: 5
Does anyone think this is a bug?


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.