org.hibernate.AnnotationException: @Temporal should only be set on a java.util.Date or java.util.Calendar property
===

<pre>

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

am using above jars to run jpa program but am getting below exception.



org.hibernate.AnnotationException: @Temporal should only be set on a java.util.Date or 

java.util.Calendar property: asso_attrib_overrides.FulltimeEmployee.currentProjects.


@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> currentProjects;

    public Map&lt;Project, Date> getCurrentProjects() {

        return currentProjects;
    }

      public void setCurrentProjects(Map&lt;Project, Date> currentProjects) {

        this.currentProjects = currentProjects;
    }

	
</pre>