Switch to lombok.With

This replaces the use of lombok.experimental.Wither which is deprecated.

Closes #611
This commit is contained in:
Jens Schauder
2021-04-09 14:04:39 +02:00
parent b5cecf730b
commit d70804b15c
4 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

@@ -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 {