-->
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.  [ 4 posts ] 
Author Message
 Post subject: Criteria {alias} needs inheritance
PostPosted: Sat Aug 06, 2005 2:40 pm 
Newbie

Joined: Thu Aug 04, 2005 12:45 pm
Posts: 4
I am using the Criteria query with Restrictions.sqlRestriction(). The "{alias}" is very handy, but it substitutes the name of the primary class. I need it to substitue the name of one of the superclasses. Is there some way to do this? Could it be changed to "{entity.property}" to refer to the property on the class or superclass?


Top
 Profile  
 
 Post subject: Second that...
PostPosted: Thu Sep 15, 2005 2:10 pm 
Newbie

Joined: Wed Sep 14, 2005 10:39 am
Posts: 4
I have a similar need.


Top
 Profile  
 
 Post subject: Re: Criteria {alias} needs inheritance
PostPosted: Wed Nov 09, 2005 3:27 pm 
Newbie

Joined: Tue Jul 20, 2004 2:40 pm
Posts: 9
Location: New York, NY
johnh wrote:
I am using the Criteria query with Restrictions.sqlRestriction(). The "{alias}" is very handy, but it substitutes the name of the primary class. I need it to substitue the name of one of the superclasses. Is there some way to do this? Could it be changed to "{entity.property}" to refer to the property on the class or superclass?


I'm running into this issue, as well. In my case, I have a base abstract class with a bunch of joined-subclasses which extend it. The base abstract class defines a couple of common properties.

If I try to construct an sqlRestriction which uses one of the common properties of the base class, the use of {alias} fails, as it plugs in the table of the joined-subclass. I unfortunately need to use an sqlRestriction in this case, as I'm utilizing Oracle-specific functionality...

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 2:22 pm 
Newbie

Joined: Tue Jul 20, 2004 2:40 pm
Posts: 9
Location: New York, NY
New JIRA on this issue:

http://opensource2.atlassian.com/projec ... e/HHH-1161


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.