When trying to map a customer-> order 1:n relationship with jaxb 2.2.6 I\'d like to get the list of orders wrapped in a separate node \"orders\".
currently the result is
It sounds like you want to wrap the Order in your CustomerJaxbDao class.
CustomerJaxbDao
@XmlElementWrapper( name="orders" ) @XmlElement(name="order", type=OrderJaxbDao.class) public List getOrders() { return orders; };
Might do what you want.