-->
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: Hibernate vs unpredictable statistical query result.
PostPosted: Wed Jul 26, 2006 5:39 am 
Newbie

Joined: Wed Apr 12, 2006 6:07 am
Posts: 4
I'd like to do some statistical queries to build a reporting module to my application. I'd like to know how to do that with Hibernate.

I explain :
Statistical data can be requested and retrieved under "array". I remember that Jdbc API allows to get ResultSet that column number is unpredictable.

Code:
"select id,name from mytable order by id;"

brings me a ResultSet contening 2 columns and x lines.

Code:
"select count(*),id,name,lastname from mytable order by id;"

brings me a ResultSet contening 4 columns and x lines.

I'd like to know how can I use Hibernate to generate a persistable (readable only) bean that contains an "array" that looks like ResultSet working.

Can I map those "Array" by any way ?
Sould I use JDBC API proposed by Hibernate Session
Code:
session.connection()


Thanks for your help.
Have a nice day.


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.