Move off deprecated code.

See #659
This commit is contained in:
Mark Paluch
2023-04-24 13:46:08 +02:00
parent 16a12a7755
commit f051de145e
13 changed files with 26 additions and 26 deletions

View File

@@ -18,7 +18,7 @@ package example.springdata.multistore.shop;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.annotation.PersistenceCreator;
/**
* A line item.
@@ -27,7 +27,7 @@ import org.springframework.data.annotation.PersistenceConstructor;
* @author Oliver Gierke
*/
@Data
@RequiredArgsConstructor(onConstructor = @__(@PersistenceConstructor))
@RequiredArgsConstructor(onConstructor = @__(@PersistenceCreator))
public class LineItem {
private final String caption;

View File

@@ -22,7 +22,7 @@ import java.util.List;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.annotation.PersistenceCreator;
import org.springframework.data.mongodb.core.mapping.Document;
/**
@@ -33,7 +33,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
* @author Oliver Gierke
*/
@Data
@RequiredArgsConstructor(onConstructor = @__(@PersistenceConstructor))
@RequiredArgsConstructor(onConstructor = @__(@PersistenceCreator))
@Document
public class Order {