Skip to main content

Marshalling of POJOs

1 reply [Last post]
bmandl
Offline
Joined: 2004-01-01
Points: 0

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.

Thanks,
Bernhard

Reply viewing options

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

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.

Sekhar