Skip to content

Commit 56aafe1

Browse files
committed
Polishing.
Formatting. Clarifying what is demonstrated a little. Original pull request #668
1 parent d9c0a0f commit 56aafe1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

jpa/interceptors/src/main/java/example/springdata/jpa/interceptors/Customer.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@
2222
@Entity
2323
public class Customer {
2424

25-
@Id @GeneratedValue Long id;
25+
@Id
26+
@GeneratedValue
27+
Long id;
2628

2729
String firstname;
2830
String lastname;
31+
2932
@Override
3033
public String toString() {
3134
return "Customer{" +

jpa/interceptors/src/test/java/example/springdata/jpa/interceptors/InterceptorIntegrationTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ class InterceptorIntegrationTest {
3030
@Autowired CustomerRepository repository;
3131

3232
@Test
33-
void foo() {
33+
void demonstrateInterceptor() {
3434

3535
var customer = new Customer();
3636
customer.firstname = "Dave";
3737
customer.lastname = "Matthews";
3838

39+
// observer Log output from ApplicationConfiguration.interceptor
3940
repository.save(customer);
4041
}
4142
}

0 commit comments

Comments
 (0)