Polishing.

Formatting.
Clarifying what is demonstrated a little.

Original pull request #668
This commit is contained in:
Jens Schauder
2024-12-17 13:12:25 +01:00
parent d9c0a0f088
commit 56aafe1057
2 changed files with 6 additions and 2 deletions

View File

@@ -22,10 +22,13 @@ import jakarta.persistence.Id;
@Entity
public class Customer {
@Id @GeneratedValue Long id;
@Id
@GeneratedValue
Long id;
String firstname;
String lastname;
@Override
public String toString() {
return "Customer{" +

View File

@@ -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);
}
}