Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo: tries to map <version.../> element in hbm to EStructuralFeature in HbUtil.getPropertyAc
Teneo: tries to map <version.../> element in hbm to EStructuralFeature in HbUtil.getPropertyAc [message #92280] Tue, 31 July 2007 21:23 Go to next message
Larry is currently offline LarryFriend
Messages: 26
Registered: July 2009
Junior Member
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 21:41 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 21:41 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Previous Topic:Teneo: tries to map <version.../> element in hbm to EStructuralFeature in HbUtil.getPropertyAc
Next Topic:[Teneo] Model persistence performance
Goto Forum:
  


Current Time: Thu Aug 11 15:49:50 GMT 2022

Powered by FUDForum. Page generated in 0.01840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top