i´m having trouble with Spring REST (new to it).

My intention is to have an Abstract-Super-Class with some common fields like ID/Version/CreatedDate and soon more.
It works just fine with JPA and database wise. But when i try to expose a child with some Repository `PagingAndSortingRepository` i get the following error once i query the api.

Other fields work just fine. Its something corresponding to the @CreatedDate annotation.

**Error:**

```
Resolved exception caused by Handler execution:        
org.springframework.http.converter.HttpMessageNotWritableException:
Could not write JSON: java.sql.Date cannot be cast to java.lang.String; 
nested exception is com.fasterxml.jackson.databind.JsonMappingException: 
java.sql.Date cannot be cast to java.lang.String (through reference chain: 
org.springframework.hateoas.PagedResources["_embedded"]-
java.util.Collections$UnmodifiableMap["users"]->java.util.ArrayList[0]org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module$PersistentEntityResourceSerializer$1["content"]->com.*.*.domain.User["createdDate"])

```

**Super:**

```
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
public abstract class AbstractPersistentObject
    implements PersistentObject, Serializable {

@Id
@GeneratedValue(strategy= GenerationType.AUTO)
protected Long id;
protected Integer version;

@org.springframework.data.annotation.CreatedDate
@Temporal(TemporalType.DATE)
public Date createdDate;

... getter / setter / constructor

protected Date getCreatedDate() {
    return createdDate;
}

protected void setCreatedDate(Date createdDate) {
    this.createdDate = createdDate;
}

```

**Example child:**

```
@Entity
@Table(name = "UserTable")
public class User extends AbstractPersistentObject {

private String firstName;
private String lastName;

@NotNull
@Column(unique = true)
private String email;
@JsonIgnore
private String password;

private boolean verified;
...

```

---

**Solution:**

```
Upgrading Spring Boot from 2.0.0.M2 to 2.0.0.M3.

```