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