@Test public void secondSet() { LocalTime attribute = LocalTime.of(23, 3, 20); Time databaseColumn = new LocalTimeConverter().convertToDatabaseColumn(attribute); Calendar calendar = Calendar.getInstance(); calendar.setTime(databaseColumn); assertEquals(23, calendar.get(Calendar.HOUR_OF_DAY)); assertEquals(3, calendar.get(Calendar.MINUTE)); assertEquals(20, calendar.get(Calendar.SECOND)); }
@Override public Time convertToDatabaseColumn(LocalTime attribute) { if (attribute == null) { return null; } return Time.valueOf(attribute); }
LocalTimeConverter implements AttributeConverter<LocalTime, Time> { @Override public Time convertToDatabaseColumn(LocalTime attribute) { if (attribute == null) { return null; } return Time.valueOf(attribute); } }
LocalTimeConverter implements AttributeConverter<LocalTime, Time> { @Override public Time convertToDatabaseColumn(LocalTime attribute) { if (attribute == null) { return null; } return Time.valueOf(attribute); }  }
LocalTimeConverter implements AttributeConverter<LocalTime, Time> { @Override public Time convertToDatabaseColumn(LocalTime attribute) { if (attribute == null) { return null; } return Time.valueOf(attribute); }  @Override Time convertToDatabaseColumn(LocalTime attribute); @Override LocalTime convertToEntityAttribute(Time dbData); }
LocalTimeConverter implements AttributeConverter<LocalTime, Time> { @Override public Time convertToDatabaseColumn(LocalTime attribute) { if (attribute == null) { return null; } return Time.valueOf(attribute); }  @Override Time convertToDatabaseColumn(LocalTime attribute); @Override LocalTime convertToEntityAttribute(Time dbData);  }