-->
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.  [ 2 posts ] 
Author Message
 Post subject: plz see the hql query ....let me whether its is correct
PostPosted: Wed Sep 10, 2008 2:16 am 
Newbie

Joined: Wed Sep 10, 2008 1:52 am
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html

Code:
select pcb.strEmpId,pcb.nCurrentBasic from PisEmpCurrentBean pcb,AppointmentBean abo where pcb.nStatus=? and pcb.strLocationId=? and pcb.nCurrPayfixationSeqNo is not null and pcb.strObsDate is null"+
         " and (getdate() >= (select DATEAdd(mm,6,ab.strJoiningDate) from AppointmentBean ab"+
         " where ab.strEmpNo in(select pcbi.strEmpId from PisEmpCurrentBean pcbi where pcbi.nStatus=? and pcbi.strLocationId=? and pcbi.nCurrPayfixationSeqNo is not null and pcbi.strObsDate is null and ab.strEmpNo=pcbi.strEmpId))) and (abo.strEmpNo=pcb.strEmpId)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 10, 2008 9:45 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
What is the problem you are getting?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.