-->
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, Criteria, and reporting
PostPosted: Tue Jul 13, 2004 9:58 am 
Newbie

Joined: Tue Apr 20, 2004 8:20 pm
Posts: 7
Location: Lake Mary, FL
I need to create a search screen in my application that works as a report generator. I have to provide the ability for the user to choose return columns, sorting, etc. It appears that I have two choices: HQL or the Criteria API and QBE. The Criteria API is very appealing because it means I won't have to do any query/string manipulation. However, it appears that the Criteria API only returns a specific type of entity (thus the Criteria factory method in Session that takes an entity class as the argument). The other option is to generate HQL on the fly to run the reports that the users ask for. In this situation, which would be the better option? Are there plans in the near future for reporting via the Criteria API?

Thanks!
Patrick


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 13, 2004 10:07 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
I think it must be better to implement report generator without any hibernate API.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 13, 2004 10:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
The Criteria API currently is mostly targeted at something like "search forms". I am quite sure it will take quite some time for it to evolve into being usable for generic reporting queries, if it ever will.


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.