title: DateTimeOffset with JPA (hibernate)
body: <p>I have a JPA using Hibernate connected to SQLserver. It works but i have an exception each time i use entity with DateTimeOffset fields.</p>
  
  <p>I tried with a custom type and used it like this:</p>
  
  <pre><code>@Basic(optional = false)
  @Column(name = "EffectiveDate")
  @org.hibernate.annotations.Type(type="DateTimeOffsetType")
  private Serializable effectiveDate;
  </code></pre>
  
  <p>DateTimeOffsetType is my custom type I made like here:
  <a href="https://stackoverflow.com/questions/4733844/datetimeoffset-hibernate-mapping">datetimeoffset hibernate mapping</a></p>
  
  <p>But still, it don't works. How can I be able to read DateTimeOffset with hibernate and JPA?</p>