-->
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: Urgent!! How to avoid UserName to be translated to user_name
PostPosted: Thu Mar 17, 2011 6:01 am 
Newbie

Joined: Mon Jan 04, 2010 1:49 am
Posts: 2
Hi,

I have a table with some columns like "UserName, OrderType, ResType" etc,
All those columns contain Uppercase letter in the middle of string.

When i use hibernateTemplate().find("from Table"), the Hql will be translated to:
select xxx.user_name, xxx.order_type, ....

So, it will fail to execute in MsSQL 2008.

Any body encountered this problem? and please help give me the solution!

Thanks!


Top
 Profile  
 
 Post subject: Re: Urgent!! How to avoid UserName to be translated to user_name
PostPosted: Thu Mar 17, 2011 6:36 am 
Newbie

Joined: Mon Jan 04, 2010 1:49 am
Posts: 2
Fixed, somebody add a namestrategy in the sessionFactory configuration.
So, it cause translation issue.!


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.