-->
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.  [ 3 posts ] 
Author Message
 Post subject: HQL "from ISomeInterface" not work for me
PostPosted: Fri Jan 06, 2006 8:29 am 
Beginner
Beginner

Joined: Mon Dec 19, 2005 4:13 am
Posts: 27
Location: Prague, Czech Republic
Hello,

just a little question. Did any of you try to use business domain specific interfaces with HQL? Mine qorks fine with "System.Object", but not with e.g. "TEST.Business.IAprovable". Query by criteria on this interface works fine.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 07, 2006 7:29 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
You need to use an <import> tag in one of your mapping files to make the interface known to HQL parser. For example, <import class="My.Class.Name, My.Assembly.Name" />


Top
 Profile  
 
 Post subject: Great
PostPosted: Mon Jan 09, 2006 7:03 am 
Beginner
Beginner

Joined: Mon Dec 19, 2005 4:13 am
Posts: 27
Location: Prague, Czech Republic
Many thanks.


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