Polishing.
Formatting. Clarifying what is demonstrated a little. Original pull request #668
This commit is contained in:
@@ -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{" +
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user