-->
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.  [ 5 posts ] 
Author Message
 Post subject: CharScanner; panic: ClassNotFoundException: org.hibernate.hq
PostPosted: Mon May 29, 2006 9:32 pm 
Newbie

Joined: Thu May 25, 2006 3:23 pm
Posts: 12
Hi All:


Last edited by jadeite1000 on Thu Nov 09, 2006 3:11 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 9:47 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
In your hibernate.cfg.xml, anywhere inside the <session-factory> element, add this line:
Code:
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>


I didn't know that weblogic conflicts with HqlToken. That's what you get for not going open source :)

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
 Post subject: Question on org.hibernate.hql.classic.ClassicQueryTranslator
PostPosted: Tue May 30, 2006 9:24 am 
Newbie

Joined: Thu May 25, 2006 3:23 pm
Posts: 12
tenwit wrote:
In your hibernate.cfg.xml, anywhere inside the <session-factory> element, add this line:
Code:
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>


I didn't know that weblogic conflicts with HqlToken. That's what you get for not going open source :)


Hi All:

What does it mean when we use
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>.
Does it mean our HQL will be compliant to Hibernate 2.1 or the HQL in the book "Hibernate In Action". Also what about the domain object and java classes, do we have to inherit a package related to hibernate classic?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 2:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
http://hibernate.org/250.html#A24


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 5:46 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Using the classic HQL parser doesn't mean that you're using Hibernate 2.1, or any other "classic" stuff (org.hibernate.class.Session, for example). All it means that you are using the class HQL parser. This supports old-style aliasing ("from Table a join a.TableB as b"), though newer code doesn't allow that (you have to omit the "as"). Also, there's no support for insert, update or delete via classic HQL.

As Steve's link points out, the fix is known and will be resolved as other projects come up to speed. You'll only have to live with this for a short while.

_________________
Code tags are your friend. Know them and use them.


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