java - Use lombok with @XmlElement -


how can use lombok in conjunction @xmlelement tags can unmarshall object?

i have 20 properties, i'm looking not write explicit getter , setter each xmlelement tags on setters.

this gets job done:

@data @xmlrootelement(name = "root") @xmlaccessortype(xmlaccesstype.field)      // update: need or else exception public class data {     @xmlelement(name = "test")     public double testdata; } 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -