-->
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: How to use Projections with net.sf.hibernate.*
PostPosted: Sun Sep 09, 2007 3:17 am 
Newbie

Joined: Wed May 23, 2007 11:23 pm
Posts: 2
Hi,
I am very new to Hibernate, and stuck with some issue.

1) I have net.sf.hibernate.* package APIs in my project , Where as when i see Hibernate examples in the Hibernate book they have examples using org.hibernate.* . So my first question is "what is the difference between two?"

2) I want to able to execute the following query
select max(Time) from MyTable where primaryKey = 22;

Since this involves both projections and Expressions, i was trying to see if projections can be used with net.sf.hibernate.* over the internet and found that net.sf.hibernate.* do not support projectios ( max, avg...) so is there a way to be able to execute the above SQL query using net.sf.hibernate.* ?

Note my project does not have org.Hibernate.* and has only net.sf.hibernate.* Since am new to Hibernate am not able to express myself correctly with hibernate terms.

Any help is appreciated.
Thanks
Deepak


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.