-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate version 2.1.2 and HBM2java source file generator
PostPosted: Thu Apr 15, 2004 12:18 pm 
Senior
Senior

Joined: Fri Nov 21, 2003 5:55 am
Posts: 155
Hi all,

I use the autofinders generated by hbm2java but when I try to call the method findAll, I catch an exception :

Hibernate Exception : unexpected token: in[from UserValueObject in class com.mcstechnology.recrutement.valueobject.UserValueObject]

And I don't know why I have these error, and if it's causes by the SQL request or something else.
If someone has an idea for help me...
Thanks in advance

public class UserValueObjectFinder implements Serializable {

public static List findAll(Session session) throws SQLException, HibernateException {
List finds = session.find("from UserValueObject in class com.mcstechnology.recrutement.valueobject.UserValueObject");
return finds;
}
}


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 15, 2004 12:20 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This must be a really old version of hbm2java, use the latest Hibernate tools.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject: RE
PostPosted: Thu Apr 15, 2004 12:52 pm 
Senior
Senior

Joined: Fri Nov 21, 2003 5:55 am
Posts: 155
I use the lasest version of external tools Hibernate Extensions 2.1


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 15, 2004 4:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the FinderRenderer was provided by external "contributor" plus some patches... i don't actually know what kind of hql the current finder renderer would generate at the moment ;(

So, please go check the code to see if it behaves badly (it shouldn't - but i can't promise anything as i don't have my developer box right here)

_________________
Max
Don't forget to rate


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