title: How to use AttributeConverter(JPA 2.1) in JPA XML mapping file?
body: <p>I have a class that contains a <code>XMLGregorianCalendar</code> property, which is not a basic type supported by hibernate. The User Guide tells me an <code>AttributeConverter</code> is a solution. However I found it has to be implemented with annotation <code>@Converter</code> and I got this:</p>
  
  <p><img src="https://i.stack.imgur.com/qZeFY.jpg" alt="enter image description here"></p>
  
  <p>The property I need to handle is:</p>
  
  <p><img src="https://i.stack.imgur.com/kjosw.jpg" alt="enter image description here"></p>
  
  <p>So I try to use hibernate mapping file, but I find no converter tags in it. How could I solve this problem?</p>