title: Jackson XML tag and attribute with the same name
body: <p>I want to get the following XML:</p>
  
  <pre><code>&lt;User id="two"&gt;
      &lt;id&gt;one&lt;/id&gt;
  &lt;/User&gt;
  </code></pre>
  
  <p>And I try to use Jackson XML mapper for this:</p>
  
  <pre><code>@JacksonXmlRootElement
  public class User {
      private String id;
  
      private String attributeId;
  
      public User(final String id, final String attributeId) {
          this.id = id;
          this.attributeId = attributeId;
      }
  
      @JacksonXmlProperty(localName = "id")
      public String getId() {
          return id;
      }
  
      @JacksonXmlProperty(localName = "id", isAttribute = true)
      public String getAttributeId() {
          return attributeId;
      }
  
      public static void main(String[] args) throws IOException {
          final XmlMapper xmlMapper = new XmlMapper();
          final File file = new File("user.xml");
          final User user = new User("one", "two");
  
          xmlMapper.writeValue(file, user);
      }
  }
  </code></pre>
  
  <p>But all I get is this exception</p>
  
  <pre><code>java.lang.IllegalArgumentException: Conflicting getter definitions for property "id": com.sbconverter.parser.slovoed.User#getId(0 params) vs com.sbconverter.parser.slovoed.User#getAttributeId(0 params)
  </code></pre>
  
  <p>Can I have same name of the attribute and tag, on one object?</p>