title: The object of class oracle.sql.TIMESTAMPTZ from mapping could not be converted to class java.util.Date
body: <p>I am facing an issue in eclipselink with TIMESTAMPTZ. There is a column in table which have timestamp and timezone. When I run my program I am getting exception.</p>
  
  <blockquote>
    <p><em>I have tried everything already on stackOverflow with similar issues and even on the below link.</em></p>
  </blockquote>
  
  <p><a href="https://www.eclipse.org/forums/index.php/t/443917/" rel="nofollow noreferrer">https://www.eclipse.org/forums/index.php/t/443917/</a></p>
  
  <hr>
  
  <pre><code>Query q = em.createNativeQuery("SELECT * FROM MY_Schema.MyTable MT WHERE MT.START_DT = (SELECT MAX(START_DT) FROM MY_Schema.MyTable)",MyTable.class);
  </code></pre>
  
  <hr>
  
  <pre><code>@Entity
  @Table(name = "MyTable", schema = "MY_Schema")
  public class MyTable implements Serializable {
      @EmbeddedId
      private MyTableId id;
  </code></pre>
  
  <hr>
  
  <pre><code>@Embeddable
  public class MyTableId implements Serializable {
  
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "END_DT")
    private Calendar endTime;
  
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "START_DT")
    private Calendar startTime;
  </code></pre>
  
  <hr>
  
  <p>Error message:</p>
  
  <pre><code>5943 [Default Executor-thread-32] ERROR com....MyClass  - 
  javax.persistence.PersistenceException: Exception [EclipseLink-3002]
  (Eclipse Persistence Services - 2.6.8.WAS-v20181218-0accd7f):
  org.eclipse.persistence.exceptions.ConversionException Exception
  Description: The object [oracle.sql.TIMESTAMPTZ@d1f0d927], of class
  [class oracle.sql.TIMESTAMPTZ], from mapping
  [org.eclipse.persistence.mappings.DirectToFieldMapping[startTime--Y_Schema.MyTable.START_DT]]
  with descriptor [RelationalDescriptor(com.....MyTableId --&gt;
  [DatabaseTable(MY_Schema.MyTable)])], could not be converted to [class
  java.util.Date].    at
  org.eclipse.persistence.internal.jpa.QueryImpl.getSingleResult(QueryImpl.java:551)
  </code></pre>