#354 - Fixes compile errors due to DATAJDBC-200.

This commit is contained in:
Jens Schauder
2018-04-16 09:54:39 +02:00
parent 05bc950a46
commit 2571c89af0
2 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.jdbc.mapping.event.BeforeSave;
import org.springframework.data.jdbc.mapping.event.BeforeSaveEvent;
import org.springframework.data.jdbc.mapping.model.ConversionCustomizer;
import org.springframework.data.jdbc.mapping.model.JdbcPersistentProperty;
import org.springframework.data.jdbc.mapping.model.NamingStrategy;
@@ -44,7 +44,7 @@ public class AggregateConfiguration {
final AtomicInteger id = new AtomicInteger(0);
return (ApplicationListener<BeforeSave>) event -> {
return (ApplicationListener<BeforeSaveEvent>) event -> {
Object entity = event.getEntity();

View File

@@ -19,7 +19,7 @@ import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jdbc.mapping.event.BeforeSave;
import org.springframework.data.jdbc.mapping.event.BeforeSaveEvent;
import org.springframework.data.jdbc.mapping.event.JdbcEvent;
import org.springframework.data.jdbc.repository.config.EnableJdbcRepositories;
@@ -45,7 +45,7 @@ public class CategoryConfiguration {
}
@Bean
public ApplicationListener<BeforeSave> timeStampingSaveTime() {
public ApplicationListener<BeforeSaveEvent> timeStampingSaveTime() {
return event -> {