-->
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: Upgrading from Hibernate 3 to Hibernate 4..
PostPosted: Thu Jul 12, 2012 12:21 am 
Newbie

Joined: Thu May 26, 2011 4:00 pm
Posts: 6
Hi,
While I am trying to upgrade from Hibernate 3 to Hibernate 4.., some queries defined in Native SQL are not getting executed.. I am getting the following exception..

org.hibernate.loader.custom.NonUniqueDiscoveredSqlAliasException: Encountered a duplicated sql alias [MOD_USER_ID] during auto-discovery of a native-sql query

After I mentioned aliases for columns, everything is working fine.. But there are so many queries already written.. So, my question is, is there any simple way to get this to work without changing the existing queries?

Thank you,
Vivekanand Alampally.


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.