Switch to lombok.With
This replaces the use of lombok.experimental.Wither which is deprecated. Closes #611
This commit is contained in:
@@ -17,13 +17,13 @@ package example.springdata.jdbc.basics.aggregate;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Value;
|
||||
import lombok.experimental.Wither;
|
||||
import lombok.With;
|
||||
|
||||
/**
|
||||
* @author Jens Schauder
|
||||
*/
|
||||
@Value
|
||||
@Wither(AccessLevel.PACKAGE)
|
||||
@With(AccessLevel.PACKAGE)
|
||||
public class ModelReport {
|
||||
String modelName, description, setName;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import lombok.AccessLevel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Wither;
|
||||
import lombok.With;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.data.annotation.PersistenceConstructor;
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE, onConstructor = @__(@PersistenceConstructor))
|
||||
public class Category {
|
||||
|
||||
private final @Id @Wither Long id;
|
||||
private final @Id @With Long id;
|
||||
private String name, description;
|
||||
private LocalDateTime created;
|
||||
private @Setter long inserted;
|
||||
|
||||
Reference in New Issue
Block a user