@Test public void canSerialize() { final Object result = new Java8LocalDateConverter().toDbValue(LocalDate.of(2014, 1, 1)); assertThat(result).isNotNull(); assertThat(result).isInstanceOf(Date.class); }
@Override public Object toDbValue(Object value) { return Date.from(((LocalDate) value).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()); }
Java8LocalDateConverter extends Converter { @Override public Object toDbValue(Object value) { return Date.from(((LocalDate) value).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()); } }
Java8LocalDateConverter extends Converter { @Override public Object toDbValue(Object value) { return Date.from(((LocalDate) value).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()); }  }
Java8LocalDateConverter extends Converter { @Override public Object toDbValue(Object value) { return Date.from(((LocalDate) value).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()); }  @Override Object toDbValue(Object value); }
Java8LocalDateConverter extends Converter { @Override public Object toDbValue(Object value) { return Date.from(((LocalDate) value).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()); }  @Override Object toDbValue(Object value);  }