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

Lukasz Antoniak (JIRA) noreply at atlassian.com
Tue Jan 31 16:48:10 EST 2012


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

Lukasz Antoniak reassigned HHH-6738:
------------------------------------

    Assignee: Lukasz Antoniak

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