The ProjectsRootNode class is necessary to control the XML root element’s name to be ‘projects’. Simply annotating the de.sub.goobi.beans.Projekt class with @XmlRootElement(name = "project") results in a wrapping element named who’s name is still derived from the classes’ name, not from the ‘name’ property set in the annotation and cannot be changed otherwise.
@author Matthias Ronge
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.