Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Formatting.
Clarifying what is demonstrated a little.

Original pull request #668
  • Loading branch information
schauder committed Dec 17, 2024
1 parent d9c0a0f commit 56aafe1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@
@Entity
public class Customer {

@Id @GeneratedValue Long id;
@Id
@GeneratedValue
Long id;

String firstname;
String lastname;

@Override
public String toString() {
return "Customer{" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ class InterceptorIntegrationTest {
@Autowired CustomerRepository repository;

@Test
void foo() {
void demonstrateInterceptor() {

var customer = new Customer();
customer.firstname = "Dave";
customer.lastname = "Matthews";

// observer Log output from ApplicationConfiguration.interceptor
repository.save(customer);
}
}

0 comments on commit 56aafe1

Please sign in to comment.