Hello all,

yesterday I posted that my <tr:inputDate> supports PPR after changing it twice.
I also have a second inputDate in my GUI. It is the date of birth of a person 
and there it is supported!
In our project we use hibernate and jpa.
The difference between these properties is:

The javax.persistence.TemporalType:

DateOfBirth is a  TemporalType DATE  -> PPR works fine.

ValidTo is a TemporalType.TIMESTAMP -> PPR works after changing value twice.


...
private Date dateOfBirth;
private Date validTo;

@Temporal(TemporalType.DATE)
public Date getDateOfBirth()
{
 return this.dateOfBirth;
}


@Temporal(TemporalType.TIMESTAMP)
public Date getValidTo()
{
 return this.validTo;
}
...

Does someone know what the problem might be? I think something with the time...?
How could I resolve this? A converter which add a time?

Kind regards
Martin

Reply via email to