-->
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: Hibern8IDE using createCriteria gives Encountered: enum
PostPosted: Thu Aug 19, 2004 8:04 pm 
Newbie

Joined: Thu Aug 19, 2004 7:49 pm
Posts: 1
Hibernate 2.1.4, Hibernate Extensions: 2.1.2

Oracle 9i


I am using Hibern8IDE 1.0 and everything loads and seems to run fine. I can execute HQL queries with no problems.

When I try to run queries via the createCriteria API I am getting the following error in the results box:

1 errors occurred while listing (and calling getPathNames).
Parse error at line 6, column 18. Encountered: enum


The query looks like:
session.createCriteria(com.unext.user.Student.class).list()

There are enums in the Student class, and they used to use PersistentEnum but have all been changed to UserTypes.

If I just execute from Student it works fine.

Can anyone point me in the right direction as to what I am doing wrong?

I know this works to some degree, because I have a smaller project that still uses the old style enums and I can get a criteria query to work. Is this the UserType for the enum that throws it?

Thanks in advance.

Pat


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.