|
|
|
|
|
|
|
Re: How to do JAXB annotations in ecore? [message #1759241 is a reply to message #1759233] |
Sat, 08 April 2017 00:51 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
I doubt what you're trying to do is sensible and I still don't really get it. You talk about "plain XML" sent by clients, so I get the impression that clients will only have to know the XML Schema to which the "plain XML" must conform. That whole side of things seems unrelated to any JAXB annotations on your side. And of course you know that EMF can generate a model from an XSD and can read and write instances that conform to this XSD so it seems that's sufficient for clients not to care about EMF but only about the XSD and for you to use EMF to read instances conforming to that XSD. So what's missing? Why do you need JAXB annotations? It doesn't sound like the clients need them. I suppose it has something to do with this JAX-RS thing, but I know nothing about that.
Before you go too far down this path, have you tried manually adding the annotations you hope to have generated to see if it even works. As I said EMF implementation classes are not compatible with what's generated by JAXB, so I just don't see how this could possibility all fit together.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.05017 seconds