-->
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: createCriteria help
PostPosted: Wed Jun 13, 2007 11:13 pm 
Newbie

Joined: Sun May 06, 2007 10:40 pm
Posts: 6
hi,

The following statement,
session.createSQLQuery("select prd.price from package pck, product prd, promotion prm where pck.promotionName='"+promotionName+"' and prd.productId = pck.productId and prm.promotionId = pck.promotionId")

does anybody know how to capture the same value by using createCriteria method. Thanks thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 12:56 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

Send your mapping files


Amila


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 26, 2007 5:21 am 
Newbie

Joined: Sun May 06, 2007 10:40 pm
Posts: 6
hi,

the mapping is fine, but i just want to know how to get the same result by using criteria api

regards,
sen


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.