-->
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: hibernate configuration
PostPosted: Sun Feb 03, 2013 7:54 am 
Newbie

Joined: Thu Jan 31, 2013 4:04 am
Posts: 1
i am new in hibernate please
what is the difference between org.hibernate.hql.classic.ClassicQueryTranslatorFactory and org.hibernate.hql.ast.ASTQueryTranslatorFactory


Top
 Profile  
 
 Post subject: Re: hibernate configuration
PostPosted: Thu Feb 07, 2013 6:24 am 
Beginner
Beginner

Joined: Wed Feb 06, 2013 2:43 am
Posts: 46
ASTQueryTranslatorFactory :
Generates translators which uses the Antlr-based parser to perform the translation.
1) Added in Hibernate 3

ClassicQueryTranslatorFactory :
Generates translators which uses the older hand-written parser to perform the translation.
1) Added in Hibernate 2.1 and in Hibernate 3 also.


ASTQueryTranslatorFactory is the new translator which parses the queries in Hibernate 3 and is by default activated.
It does not support all queries from Hibernate 2.1 if you are doing a migration . For that you can switch the translator to ClassicQueryTranslatorFactory

_________________
Thanks,
Ajit Singh
ajits@mindfiresolutions.com
www.mindfiresolutions.com


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.