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;
|
||||
|
||||
@@ -17,7 +17,7 @@ package example.springdata.jdbc.jooq;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import lombok.experimental.Wither;
|
||||
import lombok.With;
|
||||
import org.springframework.data.annotation.Id;
|
||||
|
||||
/**
|
||||
@@ -29,7 +29,7 @@ import org.springframework.data.annotation.Id;
|
||||
@Data
|
||||
public class Category {
|
||||
|
||||
@Wither
|
||||
@With
|
||||
private final @Id Long id;
|
||||
private String name, description;
|
||||
private AgeGroup ageGroup;
|
||||
|
||||
@@ -18,7 +18,7 @@ package example.springdata.rest.stores;
|
||||
import static org.springframework.data.mongodb.core.index.GeoSpatialIndexType.*;
|
||||
|
||||
import lombok.Value;
|
||||
import lombok.experimental.Wither;
|
||||
import lombok.With;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@@ -34,7 +34,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
@Value
|
||||
@Wither
|
||||
@With
|
||||
@Document
|
||||
public class Store {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user