Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] xsd mappings
[TEXO] xsd mappings [message #870730] Wed, 09 May 2012 13:26 Go to next message
Gary Godfrey is currently offline Gary GodfreyFriend
Messages: 31
Registered: February 2012
Member
Hi,

The XSD is converting to Java, applying changes automatically using the ecore/annotations model really well. Thank you.

I have though just found out the system which will handle part of the processing is expecting JAXB bindings to have been applied. e.g.
xs:integer --> int rather than java.math.BigInteger

Is it possible to annotate the ecore ePackage to override default mappings and instead map xs:integer to int?

Regards,
Gary
Re: [TEXO] xsd mappings [message #870828 is a reply to message #870730] Wed, 09 May 2012 19:38 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Gary,
Hmm, can't be changed/controlled easily (at least not without coding), but maybe I can add a JAXB compliant mode. Are
you aware of other simple type mismatches between EMF and jaxb?
See the last pages of the attached pdf for an overview of the xsd-ecore mappings.

Can you enter a bugzilla for this then we can take it from there.

gr. Martin

On 05/09/2012 03:26 PM, Gary Godfrey wrote:
> Hi,
>
> The XSD is converting to Java, applying changes automatically using the ecore/annotations model really well. Thank you.
>
> I have though just found out the system which will handle part of the processing is expecting JAXB bindings to have been
> applied. e.g.
> xs:integer --> int rather than java.math.BigInteger
>
> Is it possible to annotate the ecore ePackage to override default mappings and instead map xs:integer to int?
>
> Regards,
> Gary


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:Integrate EMF Search with GMF
Next Topic:[EEF] Customizing EEF Generation
Goto Forum:
  


Current Time: Tue Apr 16 18:43:50 GMT 2024

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

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

Back to the top