[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1371) MappingException is thrown when the same column is referenced with different case

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:26 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-1371.
-------------------------------


Closing stale resolved issues

> MappingException is thrown when the same column is referenced with different case
> ---------------------------------------------------------------------------------
>
>                 Key: HHH-1371
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1371
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1.1
>         Environment: Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production With the Partitioning, OLAP and Data Mining options
> JDBC Driver Version is Oracle JDBC driver 10.2.0.1.0
> Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) (OC4J)
>            Reporter: Jifeng Liu
>            Assignee: Emmanuel Bernard
>            Priority: Minor
>             Fix For: 3.1.2
>
>         Attachments: hibernate.cfg.xml, stacktrace.txt
>
>
> I got  org.hibernate.MappingException: Same logical column name referenced several times: Marking_Periods.School_Id School_ID School_Id. Please see attached file for full stack trace. My mapping file works for Hibernate 3.1. But it fails after I installed Hibernate 3.1.1 jar file.
> The mapping file that causes MappingException is:
> <hibernate-mapping>
>         <class name="com.senior.bll.academic.school.MarkingPeriod" 
>             table="Marking_Periods"	rowid="rowid">
> 			<composite-id>
> 				<key-property name="schoolId" column="School_ID"/>
> 				<key-property name="academicYear" column="Academic_Yr"/>
> 				<key-property name="sortNo" column="Period_Sort_No"/>
> 			</composite-id>
> 			<property name="name" column="Name"/>
> 			<property name="abbrev" column="Abbrev"/>			
> 			
> 			<!-- 
> 				this many-to-one uses School_Id, Academic_Yr field that is also used in other places. That is the reason
> 				that it has properties: insert="false" update="false". 
> 			-->
> 			<property name="termSortNo" column="Term_Sort_No"/>
> 			<many-to-one name="term" cascade="save-update"
> 				fetch="join" insert="false" update="false"
> 			>
> 				<column name="School_Id" />
> 				<column name="Academic_Yr" />
> 				<column name="Term_Sort_No" />
> 			</many-to-one>
> 			
> 			<filter name="schoolId" condition="School_Id=:schoolId"/> 				                
>         </class>
> </hibernate-mapping>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list