It is a pure Date.

On Tue, Dec 7, 2010 at 9:24 PM, nivs <[email protected]> wrote:
>
> Hi
>
> If your getting the date format error from the Model side and it is
> expecting a timestamp , then you might get that issue.
> Are you using a TimeStamp field or pure date?
>
> If I wanted only to store date in the backend without timestamp details my
> model has to be decorated like
>
> @Temporal(TemporalType.DATE) //This is important
> @Column(name = "DATE_OF_APPLICATION", length = 7)
> public Date getDateOfApplication() {
>        return this.dateOfApplication;
> }
>
> If for instance it was
> @Temporal(TemporalType.TIMESTAMP)
>
> It will fail validation based on the format.
>
> Hope that helps
> Cheers
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/DatePicker-to-pick-a-year-tp3063856p3077604.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Anna Simbirtsev
(416) 729-7331

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to