We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cfe4fb commit 4de0adbCopy full SHA for 4de0adb
jdbc/basics/src/test/java/example/springdata/jdbc/basics/config/TestContextConfiguration.java
@@ -47,10 +47,12 @@ DataSource dataSource() {
47
.build();
48
}
49
50
+ @Bean
51
public ApplicationListener<?> loggingListener(){
52
return (ApplicationListener<JdbcEvent>) jdbcEvent -> System.out.println("received an event: " + jdbcEvent);
53
54
55
56
public ApplicationListener<?> idGenerator(){
57
return (ApplicationListener<BeforeInsert>) jdbcEvent -> ((Category)jdbcEvent.getEntity()).timeStamp();
58
0 commit comments