In this answer:
Code: Select all
@ElementCollection
@CollectionTable(name="EMP_PROJECTS")
@Column(name="STARTDATE")
private Map<Project, Date> currentProjects;
Cheers!
Moderator: admin
Code: Select all
@ElementCollection
@CollectionTable(name="EMP_PROJECTS")
@Column(name="STARTDATE")
private Map<Project, Date> currentProjects;
@Temporal is needed with java.util.Date, and not needed with java.sql.DatePedroKowalski wrote:Howdy,
In this answer:
don't we need to put @Temporal annotation, as the value of the map is a Date which must have defined temporal type?Code: Select all
@ElementCollection @CollectionTable(name="EMP_PROJECTS") @Column(name="STARTDATE") private Map<Project, Date> currentProjects;
Cheers!
Users browsing this forum: No registered users and 92 guests