Delombok code.

Closes #2286
This commit is contained in:
Mark Paluch
2023-07-07 14:51:03 +02:00
parent 18030f9171
commit aa7262b038
38 changed files with 989 additions and 231 deletions

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.data.rest.tests.security;
import lombok.Value;
import java.util.UUID;
import org.springframework.data.annotation.Id;
@@ -24,9 +22,21 @@ import org.springframework.data.annotation.Id;
/**
* @author Oliver Gierke
*/
@Value
public class Order {
public final class Order {
@Id private final UUID id = UUID.randomUUID();
private final Person customer;
public Order(Person customer) {
this.customer = customer;
}
public UUID getId() {
return this.id;
}
public Person getCustomer() {
return this.customer;
}
@Id UUID id = UUID.randomUUID();
Person customer;
}

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.data.rest.tests.security;
import lombok.Value;
import java.util.UUID;
import org.springframework.data.annotation.Id;
@@ -24,9 +22,26 @@ import org.springframework.data.annotation.Id;
/**
* @author Oliver Gierke
*/
@Value
public class Person {
public final class Person {
@Id private final UUID id = UUID.randomUUID();
private final String firstname, lastname;
public Person(String firstname, String lastname) {
this.firstname = firstname;
this.lastname = lastname;
}
public UUID getId() {
return this.id;
}
public String getFirstname() {
return this.firstname;
}
public String getLastname() {
return this.lastname;
}
@Id UUID id = UUID.randomUUID();
String firstname, lastname;
}