Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » XML Model Annotations
XML Model Annotations [message #757786] Mon, 21 November 2011 16:53 Go to next message
Rob Cernich is currently offline Rob CernichFriend
Messages: 40
Registered: September 2011
Hey all,

Not sure if this question has been asked already, but....

Regarding the model annotations supporting XML, has there been any thought about using JAXB annotations as opposed to the current Sapphire specific annotations?

Just throwing that out there.

Re: XML Model Annotations [message #758118 is a reply to message #757786] Mon, 21 November 2011 22:35 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
JAXB annotations aren't a standalone API designed to work for all XML binding needs. They are part of the JAXB system for XML binding to a pojo. As such JAXB has assumptions and expectations about how things work and those are surfaced in the JAXB annotations. Trying to use JAXB annotations on Sapphire models would not result in a good fit. Maybe some basic stuff work be ok, but not beyond that.

There is also the issue of confusing JAXB tooling which would be expecting JAXB annotations to be used on classes that JAXB runtime would know what to do with. When faced with Sapphire classes, the tooling would likely flag a bunch of errors.

- Konstantin
Previous Topic:Sapphire talk proposal for EclipseCon North America 2012
Next Topic:Sapphire 0.4 RC1
Goto Forum:

Current Time: Fri Dec 09 06:31:11 GMT 2022

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

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

Back to the top