|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface MODelegateProperty
Defines a Bean property that is flattened in the XML representation.
A property that is mapped with this annotation is considered as a delegate - the property itself is not written to any XML element, but the properties of the Bean contained by the property are mapped. All the properties of the child object are added as properties of the parent object.
Any annotation such as MOPersistentBean
or MOXmlGlobalType
at the property type Bean are ignored.
The ordering of the properties of the delegate is internally determined by the annotations on the delegate class
(ordering between the properties of the delegate). The location where the delegate properties are included
in the enclusing class are determined by the xmlOrder()
member.
Note that nested delegates are supported (delegate bean who itself has delegate beans).
Required Element Summary | |
---|---|
int |
xmlOrder
The XML ordering of the delegate properties in the parent bean XML representation |
Element Detail |
---|
public abstract int xmlOrder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |