shainegordon
08/11/2017, 4:21 PMimport org.joda.time.DateTime
import org.springframework.format.annotation.DateTimeFormat
data class EventSearchParameters constructor(
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) var fromDate: DateTime?,
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) var toDate: DateTime?)
if I convert this back to a standard Lombok POJO, then this works as expected
import lombok.Data;
import org.joda.time.DateTime;
import org.springframework.format.annotation.DateTimeFormat;
@Data
public class EventSearchParameters {
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
private DateTime fromDate;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
private DateTime toDate;
}