-->
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: find query problem....
PostPosted: Sat Oct 10, 2009 4:52 am 
Newbie

Joined: Sat Oct 10, 2009 4:47 am
Posts: 2
SessionFactory fact = new Configuration().configure().buildSessionFactory();
sess = fact.openSession();
String SQL_QUERY ="Select tb_appointment.appt_id,tb_appointment.appt_time,tb_appointment.appt_consultantid," +
"tb_appointment.appt_patname,tb_appointment.appt_complaints,tb_appointment.appt_convert from apptView tb_appointment";
Query query = sess.createQuery(SQL_QUERY);
List list = query.list();


iam gertting error as
ava.lang.Error: Unresolved compilation problems:
Cannot instantiate the type List
Cannot instantiate the type List
please i need a help..


Top
 Profile  
 
 Post subject: Re: find query problem....
PostPosted: Sun Oct 11, 2009 3:04 am 
Newbie

Joined: Sun Oct 11, 2009 2:43 am
Posts: 7
Have you imported java.util.List class?
If no then try it!


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.