Teneo: tries to map <version.../> element in hbm to EStructuralFeature in HbUtil.getPropertyAc [message #92280] |
Tue, 31 July 2007 17:23  |
Eclipse User |
|
|
|
Running europa with Hibernate 3.2.4, upgrading from callisto.
I provide my own hibernate.hbm.xml file with version elements that look
like:
<version name="e_Version"
column="`Job_VN`"
access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "
/>
At runtime, getPropertyAccessor() doesn't find a metaAttribute with key
HbMapperConstants.VERSION_META.
It then fails to find an EStructuralFeature, and breaks Hibernate.
|
|
|
Re: Teneo: tries to map <version.../> element in hbm to EStructuralFeature in HbUtil.getProper [message #92297 is a reply to message #92280] |
Tue, 31 July 2007 17:41  |
Eclipse User |
|
|
|
You need a meta tag within the version tag, for example:
<version name="e_version" column="e_version"
access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
gr. Martin
Larry Stevens wrote:
> Running europa with Hibernate 3.2.4, upgrading from callisto.
>
> I provide my own hibernate.hbm.xml file with version elements that look
> like:
>
> <version name="e_Version"
> column="`Job_VN`"
>
> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "
> />
>
>
>
> At runtime, getPropertyAccessor() doesn't find a metaAttribute with key
>
> HbMapperConstants.VERSION_META.
>
>
>
> It then fails to find an EStructuralFeature, and breaks Hibernate.
>
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: Teneo: tries to map <version.../> element in hbm to EStructuralFeature in HbUtil.getProper [message #609404 is a reply to message #92280] |
Tue, 31 July 2007 17:41  |
Eclipse User |
|
|
|
You need a meta tag within the version tag, for example:
<version name="e_version" column="e_version"
access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
gr. Martin
Larry Stevens wrote:
> Running europa with Hibernate 3.2.4, upgrading from callisto.
>
> I provide my own hibernate.hbm.xml file with version elements that look
> like:
>
> <version name="e_Version"
> column="`Job_VN`"
>
> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "
> />
>
>
>
> At runtime, getPropertyAccessor() doesn't find a metaAttribute with key
>
> HbMapperConstants.VERSION_META.
>
>
>
> It then fails to find an EStructuralFeature, and breaks Hibernate.
>
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.04152 seconds