I'm having a problem getting Projections to work with Joda LocalDateTime
.
public interface SomeProjection {
Long getId();
LocalDateTime getDateCreated()
}
Results in the following error:
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Projection type must be an interface! (through reference chain: org.springframework.data.domain.PageImpl["content"]->java.util.Collections$UnmodifiableRandomAccessList[0]->com.sun.proxy.$Proxy358["dateCreated"])
I tried adding the same conversion type that I have in the entity.
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime")
But that doesn't seem to matter for Projections. Any tips or tricks here?