Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » emf model importer: prefix names are always "type"
emf model importer: prefix names are always "type" [message #70325] Fri, 02 February 2007 22:58 Go to next message
Brian Vetter is currently offline Brian VetterFriend
Messages: 74
Registered: July 2009
Member
When I use the emf model importer to pull in an XSD into an ecore model, the name prefix placed in the ecore model for all of the referenced/imported types are the same: "types". While it doesn't seem to bother the emf internals too much, it causes much grief when I use Teneo to map these types to database tables. The prefix names are used to scope the table names.

I think the proper behavior would be to use the prefix names as defined in the XSDs (either the including XSDs or perhaps the ones where the types are actually created). Is this a reasonable request or is there something that keeps this from working this way?

I can work around this temporarily by doing this by hand for now, but ultimately, I need to do this completely programmatically.

Brian
Re: emf model importer: prefix names are always "type" [message #70366 is a reply to message #70325] Sat, 03 February 2007 12:34 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Brian,

You can use the ecore:nsPrefix annotation as described in
http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf
to control this.


Brian Vetter wrote:
> When I use the emf model importer to pull in an XSD into an ecore
> model, the name prefix placed in the ecore model for all of the
> referenced/imported types are the same: "types". While it doesn't seem
> to bother the emf internals too much, it causes much grief when I use
> Teneo to map these types to database tables. The prefix names are used
> to scope the table names.
>
> I think the proper behavior would be to use the prefix names as
> defined in the XSDs (either the including XSDs or perhaps the ones
> where the types are actually created). Is this a reasonable request or
> is there something that keeps this from working this way?
>
> I can work around this temporarily by doing this by hand for now, but
> ultimately, I need to do this completely programmatically.
> Brian
Re: emf model importer: prefix names are always "type" [message #602115 is a reply to message #70325] Sat, 03 February 2007 12:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Brian,

You can use the ecore:nsPrefix annotation as described in
http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf
to control this.


Brian Vetter wrote:
> When I use the emf model importer to pull in an XSD into an ecore
> model, the name prefix placed in the ecore model for all of the
> referenced/imported types are the same: "types". While it doesn't seem
> to bother the emf internals too much, it causes much grief when I use
> Teneo to map these types to database tables. The prefix names are used
> to scope the table names.
>
> I think the proper behavior would be to use the prefix names as
> defined in the XSDs (either the including XSDs or perhaps the ones
> where the types are actually created). Is this a reasonable request or
> is there something that keeps this from working this way?
>
> I can work around this temporarily by doing this by hand for now, but
> ultimately, I need to do this completely programmatically.
> Brian


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:emf model importer: prefix names are always "type"
Next Topic:[teneo] bidirectional OneToOne containment association - container not set in child object
Goto Forum:
  


Current Time: Thu Mar 28 17:08:02 GMT 2024

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

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

Back to the top