Skip to main content

Marshalling of POJOs

1 reply [Last post]
Joined: 2004-01-01

It would be great if there would be a global option that specifies how object properties are marshalled (as attribute or child element).

Our internal standard says that attributes should be used whenever possible in preference over child elements (so simple type properties of POJOs will always be represented as attributes in our company).

Having to annotate all properties of an object to reach this purpose is not very pretty.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-25

Mapping of properties and fields to attributes (whose types can map to simple schema types) rather than elements is already under consideration. Note that this would be done by default. No global option would not be necessary.