Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Criteria API
PostPosted: Sat Apr 28, 2012 4:25 am 
Newbie

Joined: Sat Apr 28, 2012 4:22 am
Posts: 1
Hi,

I have the following problem :

Table person
id
lastName
firstName
yearOfBirth

Is it possible to generate the following SQL statement using Criteria API ?

Code:
select * from (select * from person where yearOfBirth = ? ) where firstName =  ?


Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.