-->
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: Problem With Hibernate While Using With Trinidad
PostPosted: Fri Oct 12, 2007 2:35 am 
Newbie

Joined: Fri Oct 05, 2007 3:46 am
Posts: 3
Location: HyderaBad
Hi All,

I am doing My Application With Hibernate And Trinidad. I am using Transactiontemplate and HibernateTemplate. Trinidad is for view layer like JSF. To make my query working with Trinidad, I specified the follwing property in hibernate.cfg.xml
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>

Then The simple Select Queries with aggregation is working with Trinidad.

These works fine upto Hibernate and Spring Layer.
1. No Query with concatenated fields with '+' sign, concat function or || sign are working with Trinidad.
2. No Query with Case when....then...else...end are working.
3. No registerFunctions like milliseconds_between, days_between are working.
etc etc

Can AnyOne have some idea to solve this problem or any suggestion ?
I am using hibernate3.x. But ASTQueryTranslatorFactory is working upto Spring Layer. For Migration With Trinidad, I specified ClassicQueryTranslatorFactory. ClassicQueryTranslatorFactory is supported with hibernate2.x so I am thinking that HibernateTemplate and TransactionTemplate are not supported with hibernate2.x. May be that Due to this query is not properly parsed.

If Any Other information regading problem is required please let me know.

Thanks,
Gopal


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.