Mapping between Representations:
Assume we have a classCustomer defined as follows:
Mapping XML to Java:
We can map the following XML objectCustomer in the following way:
Mapping Java to XML:
We can map thecustomer back to XML as follows:
Spin can deserialize XML to Java objects and serialize the annotated Java objects to XML by integrating mapping features into its fluent API. JAXB…
Customer defined as follows:
Customer in the following way:
customer back to XML as follows: