Skip to content

Commit e1dc3a4

Browse files
committed
DATAJDBC-99 - Eventsupport.
The repository publishes events before and after inserting, updating and deleting entities, as well as after instantiation of entities. JdbcEvent ist the common super class of all events and makes the id and the entity available (if possible). Added issue id comments to tests from previous issues.
1 parent 487f825 commit e1dc3a4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/org/springframework/data/jdbc/repository/SimpleJdbcRepositoryEventsUnitTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.springframework.data.jdbc.repository;
22

3-
import static java.util.Arrays.asList;
3+
import static java.util.Arrays.*;
44
import static org.junit.Assert.*;
55
import static org.mockito.Mockito.*;
66
import static org.springframework.util.Assert.*;
@@ -14,11 +14,9 @@
1414
import org.springframework.data.annotation.Id;
1515
import org.springframework.data.jdbc.mapping.event.AfterDeleteEvent;
1616
import org.springframework.data.jdbc.mapping.event.AfterInsertEvent;
17-
import org.springframework.data.jdbc.mapping.event.AfterSaveEvent;
1817
import org.springframework.data.jdbc.mapping.event.AfterUpdateEvent;
1918
import org.springframework.data.jdbc.mapping.event.BeforeDeleteEvent;
2019
import org.springframework.data.jdbc.mapping.event.BeforeInsertEvent;
21-
import org.springframework.data.jdbc.mapping.event.BeforeSaveEvent;
2220
import org.springframework.data.jdbc.mapping.event.BeforeUpdateEvent;
2321
import org.springframework.data.jdbc.mapping.event.JdbcEvent;
2422
import org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory;

0 commit comments

Comments
 (0)