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.
|