Save Time field on Microsoft sql server

An entity with a Time field show correctly the content stored on db, but if I change the value, when the field lost focus, compare this message:

ConversionException: Converter returned an object of type java.util.Date when expecting java.sql.Time

This is the field definition in entity designer:


    @Temporal(TemporalType.TIME)
    @Column(name = "\"EndTime\"")
    protected Date endTime;

    public void setEndTime(Date endTime) {
        this.endTime= endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

How can be resolved?

Sorry, I realyzed only now that the component used in my edit screen was a textField instead of a timeField.
I apologize for opening a Topic for a problem that does not exist.
Sorry…