title: jaxb XmlAccessType: PROPERTY example
body: <p>I'm trying to use jaxb and want to use the 'XmlAccessType.PROPERTY'
  to let jaxb use getters/setters rather than variable directly, but get 
  different errors depending on what I try, or the variable
  isn't set at all like I want.</p>
  
  <p>Any good link or pointer to a simple example?</p>
  
  <p>For example, the below makes the groupDefintion not
  to be set when parsing the xml document:</p>
  
  <pre><code>@XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.PROPERTY)
  public class E {
      private EGroup groupDefinition;
  
      public EGroup getGroupDefinition () {
          return groupDefinition;
      }
      @XmlAttribute
      public void setGroupDefinition (EGroup g) {
          groupDefinition = g;
      }
  }
  </code></pre>