-->
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 write this in Hibernate
PostPosted: Wed Sep 12, 2007 8:27 am 
Beginner
Beginner

Joined: Fri Sep 08, 2006 7:29 am
Posts: 36
Hi,

I have just started using Hibernate properly and need to convert the following NATIVE SQL query to Hibernate. Can anybody please help?


Code:

SELECT * FROM   data_owner.con_contact, data_owner.cxi_con_extended_info WHERE  con_code = cxi_con_code
AND    cxi_end_date  IS NULL
AND    cxi_cgrl_code IN ('SENDIR','EXECDIR','DIRECTOR')
AND    EXISTS (SELECT 1
               FROM   tech_params
               WHERE  param_name LIKE 'VWS_VAL_DEP_CODE%'
               AND    PARAM_VALUE = con_dep_code);



Thank You,
Shardul.


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.