title: org.hibernate.AnnotationException: @Temporal should only be set on a java.util.Date or java.util.Calendar property
body: <p>I am using below jars to run jpa program but am getting an exception:</p>
  
  <pre><code>hibernate-entitymanager-3.4.0.GA.jar
  hibernate-annotations-3.4.0.GA.jar
  hibernate-commons-annotations-3.3.0.ga.jar
  hibernate-core-3.3.1.GA.jar
  javax.persistence.jar
  </code></pre>
  
  <p>The exception is:</p>
  
  <blockquote>
    <p>org.hibernate.AnnotationException: @Temporal should only be set on a java.util.Date or java.util.Calendar property: asso_attrib_overrides.FulltimeEmployee.currentProjects.</p>
  </blockquote>
  
  <p>My entity:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Entity
  public class FulltimeEmployee extends Employee {
  
      @ElementCollection
      @CollectionTable(name="EMP_PROJECTS", joinColumns=@JoinColumn(name="MY_EMP_ID"))
      @Temporal(TemporalType.DATE)
      @MapKeyJoinColumn(name="THE_PROJECT_ID")
      @Column(name="STARTDATE")
      protected Map&lt;Project, Date&gt; currentProjects;
  
      public Map&lt;Project, Date&gt; getCurrentProjects() {
          return currentProjects;
      }
  
        public void setCurrentProjects(Map&amp;lt;Project, Date&gt; currentProjects) {
          this.currentProjects = currentProjects;
      }
  
  
  </code></pre>