-->
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: Repost: question about session.find()
PostPosted: Tue Sep 09, 2003 3:09 pm 
Beginner
Beginner

Joined: Wed Aug 27, 2003 8:53 pm
Posts: 34
(Sorry, I put wrong title to the previous question, pls ignore it.)

hi,

I try to get a list of objects using the following code:

Object[] args ={};
Type[] types = {};
String query = "from Student as student ";
......
session.find(query, args, types);

The last line throws:

java.lang.NoClassDefFoundError: net/sf/hibernate/type/Type

What's wrong with my code?

regards,


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 09, 2003 8:22 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Taking you example as accurate, for example, no args then don't pass args to find.

String query = "from Student as student ";
......
List rlist = session.find(query);


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 09, 2003 9:27 pm 
Beginner
Beginner

Joined: Wed Aug 27, 2003 8:53 pm
Posts: 34
Thanks, solved my problem.


david wrote:
Taking you example as accurate, for example, no args then don't pass args to find.

String query = "from Student as student ";
......
List rlist = session.find(query);


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.