I have a Java Entity class with the following Date import:

```
import java.sql.Date;

```

the Entity is declaring a Date. In my repository, I have the following Query:

```
@Query("SELECT new Filmographer (f.name, f.startDate) FROM Filmographers f")
public List<Filmographer> getFilmographers();

```

However, when I attempt to build this file, I receive the following error:

```
Unable to locate appropriate constructor on class [Filmographer]
Expected arguments are: java.lang.String, java.util.Date [ SELECT 
new Filmographer(f.name, f.startDate) FROM Filmographers f]

```

If I remove the date altogether from both the entity and repository, it works fine. 

Can someone explain to me why Java appears to be picking my date declaration for me and plausibly ignoring my **java.sql.Date** import?

**UPDATE**: Pojo added upon request:

```
package com.example.Filmographer;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="Filmographers")
public class Filmographer implements Serializable {

    private static final long serialVersionUID = 1L;

    public Filmographer() {}

    public Filmographer(
        String name,
        Date startDate
    ) {
        this.name = name;
        this.startDate = startDate;
    }

    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name="filmographerid")
    private int filmographerId;

    @Column(name="name")
    private String name;

    @Column(name="startDate")
    private Date startDate;

    public int getFilmographerId() {
        return filmographerId;
    }

    public void setFilmographerId(int filmographerId) {
        this.filmographerId = filmographerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

}

```