-->
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: extensibility, hql + criteria - how this could work out.
PostPosted: Sat May 09, 2009 10:07 am 
Newbie

Joined: Sat May 09, 2009 9:53 am
Posts: 2
So i have worked for about 2 years with Hibernate now, have experienced some subtle bugs but most of the time a workaround could be found.
Now i am using hibernatespatial a lot, as well as some homebrew Criterions, and implementations of the Order class. Hibernatespatial is implemented exclusively for the criteria API.

Most of the time i like to write hql because it is fast to write + fast to execute. sometimes i am forced to query with the Criteria API. the process of switching over from perfectly working hql is often painful, especially since criteria has some limitations.
What would be great is a conversion from a org.hibernate.Query to org.hibernate.Criteria or org.hibernate.Criterion
I think it may be possible that each Query could generate a complex Criterion.
That way, one could formulate queries with hql, when the need for extensibility arises you can implement the Criterion classes etc and just attach them to the converted hql.

Do you think it is possible to implement such a method on the Query interface? Is there already an issue for this?
I do see a ton of possible use cases for this.

any chance to get feedback from a hibernate dev on this? should i create an issue with feature request?


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.