You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Martin Piekorz <pi...@primion.de> on 2008/04/30 10:25:09 UTC
[TRINIDAT] PPR works for a Date but do not support
a Timestamp. Any Idea how to resolve.
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