Gertjan Idema | 18 Sep 23:26
Picon

org.hibernate.MappingException: invalid mapping

I just ran into what seems a minor bug in Elver/Teneo. I was curious about
what would happen if I tried to build a hibernate mapping for the
EcorePackage itself.
When I tried this, I got the "org.hibernate.MappingException: invalid
mapping" message.
Looking at the generated XML, I found a <list-index> element inside a <map>
element which violates the DTD.
Though my case was quite exceptional, it might happen in other, more common
cases.

Gertjan Idema

		<map name="details" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`details_id`" not-null="false"
unique="false"/>
			</key>
			<list-index column="`eannotation_details_idx`"/>
			<map-key column="KEY" type="java.lang.String"/>
			<element column="VALUE" type="java.lang.String"/>
		</map>

--

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.4/449 - Release Date: 15-09-2006


Gmane