[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-6738) Hardcoded alias causing problems

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Feb 8 23:22:46 EST 2012


     [ https://hibernate.onjira.com/browse/HHH-6738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-6738.
-------------------------------


Closing for 4.1 release

> Hardcoded alias causing problems
> --------------------------------
>
>                 Key: HHH-6738
>                 URL: https://hibernate.onjira.com/browse/HHH-6738
>             Project: Hibernate ORM
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 3.6.6
>         Environment: Hibernate 3.6.6-Final, PostgreSQL 9.0
>            Reporter: Sven Uibo
>            Assignee: Lukasz Antoniak
>             Fix For: 4.1.0
>
>
> org.hibernate.envers.entities.mapper.relation.query.TwoEntityQueryGenerator has hardcoded aliases. The "ee" alias is causing problems, because in Estonia most packages start with "ee.". A "_" suffix would be nice.
> The exception thrown:
> javax.ejb.EJBTransactionRolledbackException: could not resolve property: compname of: SchoolSyllabus_SchoolSyllabusDrivingTopicLog [select new list(ee, e) from SchoolSyllabus_SchoolSyllabusDrivingTopicLog ee, ee.compname.proj.business.entity.syllabus.SchoolSyllabusDrivingTopicLog e where ee.originalId.drivingTopics_id = e.originalId.id and ee.originalId.SchoolSyllabus_id = :SchoolSyllabus_id and e.originalId.ver_rev.id = (select max(e2.originalId.ver_rev.id) from ee.compname.proj.business.entity.syllabus.SchoolSyllabusDrivingTopicLog e2 where e2.originalId.ver_rev.id <= :revision and e.originalId.id = e2.originalId.id) and ee.originalId.ver_rev.id = (select max(ee2.originalId.ver_rev.id) from SchoolSyllabus_SchoolSyllabusDrivingTopicLog ee2 where ee2.originalId.ver_rev.id <= :revision and ee.originalId.SchoolSyllabus_id = ee2.originalId.SchoolSyllabus_id and ee.originalId.drivingTopics_id = ee2.originalId.drivingTopics_id) and ee.REVTYPE != :delrevisiontype and e.REVTYPE != :delrevisiontype]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list