diff --git a/guides/micronaut-microservices-services-discover-consul/bookcatalogue/groovy/src/main/groovy/example/micronaut/Book.groovy b/guides/micronaut-microservices-services-discover-consul/bookcatalogue/groovy/src/main/groovy/example/micronaut/Book.groovy index 4d2088369e0..8b84c4a79f0 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookcatalogue/groovy/src/main/groovy/example/micronaut/Book.groovy +++ b/guides/micronaut-microservices-services-discover-consul/bookcatalogue/groovy/src/main/groovy/example/micronaut/Book.groovy @@ -3,14 +3,14 @@ package example.micronaut import groovy.transform.CompileStatic import groovy.transform.EqualsAndHashCode import io.micronaut.core.annotation.Creator -import io.micronaut.core.annotation.Introspected import io.micronaut.core.annotation.NonNull +import io.micronaut.serde.annotation.Serdeable import javax.validation.constraints.NotBlank @CompileStatic @EqualsAndHashCode -@Introspected +@Serdeable class Book { @NonNull diff --git a/guides/micronaut-microservices-services-discover-consul/bookcatalogue/java/src/main/java/example/micronaut/Book.java b/guides/micronaut-microservices-services-discover-consul/bookcatalogue/java/src/main/java/example/micronaut/Book.java index 3f0ab9c2228..eaa37f5b9ca 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookcatalogue/java/src/main/java/example/micronaut/Book.java +++ b/guides/micronaut-microservices-services-discover-consul/bookcatalogue/java/src/main/java/example/micronaut/Book.java @@ -1,12 +1,12 @@ package example.micronaut; -import io.micronaut.core.annotation.Introspected; import io.micronaut.core.annotation.NonNull; +import io.micronaut.serde.annotation.Serdeable; import javax.validation.constraints.NotBlank; import java.util.Objects; -@Introspected +@Serdeable public class Book { @NonNull diff --git a/guides/micronaut-microservices-services-discover-consul/bookcatalogue/kotlin/src/main/kotlin/example/micronaut/Book.kt b/guides/micronaut-microservices-services-discover-consul/bookcatalogue/kotlin/src/main/kotlin/example/micronaut/Book.kt index 4110037b21e..2e0411b2de2 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookcatalogue/kotlin/src/main/kotlin/example/micronaut/Book.kt +++ b/guides/micronaut-microservices-services-discover-consul/bookcatalogue/kotlin/src/main/kotlin/example/micronaut/Book.kt @@ -1,8 +1,8 @@ package example.micronaut -import io.micronaut.core.annotation.Introspected +import io.micronaut.serde.annotation.Serdeable import javax.validation.constraints.NotBlank -@Introspected +@Serdeable data class Book(@NotBlank val isbn: String, @NotBlank val name: String) diff --git a/guides/micronaut-microservices-services-discover-consul/bookinventory/groovy/src/main/groovy/example/micronaut/BookInventory.groovy b/guides/micronaut-microservices-services-discover-consul/bookinventory/groovy/src/main/groovy/example/micronaut/BookInventory.groovy index 0702dcf6af8..1c0f0fb68b3 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookinventory/groovy/src/main/groovy/example/micronaut/BookInventory.groovy +++ b/guides/micronaut-microservices-services-discover-consul/bookinventory/groovy/src/main/groovy/example/micronaut/BookInventory.groovy @@ -2,14 +2,14 @@ package example.micronaut import groovy.transform.CompileStatic import groovy.transform.EqualsAndHashCode -import io.micronaut.core.annotation.Introspected import io.micronaut.core.annotation.NonNull +import io.micronaut.serde.annotation.Serdeable import javax.validation.constraints.NotBlank @CompileStatic @EqualsAndHashCode -@Introspected +@Serdeable class BookInventory { @NonNull diff --git a/guides/micronaut-microservices-services-discover-consul/bookinventory/java/src/main/java/example/micronaut/BookInventory.java b/guides/micronaut-microservices-services-discover-consul/bookinventory/java/src/main/java/example/micronaut/BookInventory.java index e87a1cf0c2d..d4eaa188cfc 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookinventory/java/src/main/java/example/micronaut/BookInventory.java +++ b/guides/micronaut-microservices-services-discover-consul/bookinventory/java/src/main/java/example/micronaut/BookInventory.java @@ -1,12 +1,12 @@ package example.micronaut; -import io.micronaut.core.annotation.Introspected; import io.micronaut.core.annotation.NonNull; +import io.micronaut.serde.annotation.Serdeable; import javax.validation.constraints.NotBlank; import java.util.Objects; -@Introspected +@Serdeable public class BookInventory { @NonNull diff --git a/guides/micronaut-microservices-services-discover-consul/bookinventory/kotlin/src/main/kotlin/example/micronaut/BookInventory.kt b/guides/micronaut-microservices-services-discover-consul/bookinventory/kotlin/src/main/kotlin/example/micronaut/BookInventory.kt index 4bfcdc50ed2..c28995f767c 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookinventory/kotlin/src/main/kotlin/example/micronaut/BookInventory.kt +++ b/guides/micronaut-microservices-services-discover-consul/bookinventory/kotlin/src/main/kotlin/example/micronaut/BookInventory.kt @@ -1,8 +1,8 @@ package example.micronaut -import io.micronaut.core.annotation.Introspected +import io.micronaut.serde.annotation.Serdeable import javax.validation.constraints.NotBlank -@Introspected +@Serdeable data class BookInventory(@NotBlank val isbn: String, val stock: Int) diff --git a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/groovy/src/main/groovy/example/micronaut/Book.groovy b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/groovy/src/main/groovy/example/micronaut/Book.groovy index 32a45f29063..2b2c327c10d 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/groovy/src/main/groovy/example/micronaut/Book.groovy +++ b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/groovy/src/main/groovy/example/micronaut/Book.groovy @@ -2,14 +2,14 @@ package example.micronaut import groovy.transform.CompileStatic import groovy.transform.EqualsAndHashCode -import io.micronaut.core.annotation.Introspected import io.micronaut.core.annotation.NonNull +import io.micronaut.serde.annotation.Serdeable import javax.validation.constraints.NotBlank @CompileStatic @EqualsAndHashCode -@Introspected +@Serdeable class Book { @NonNull diff --git a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/groovy/src/main/groovy/example/micronaut/BookRecommendation.groovy b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/groovy/src/main/groovy/example/micronaut/BookRecommendation.groovy index d2534968e8d..199d6571992 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/groovy/src/main/groovy/example/micronaut/BookRecommendation.groovy +++ b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/groovy/src/main/groovy/example/micronaut/BookRecommendation.groovy @@ -2,14 +2,14 @@ package example.micronaut import groovy.transform.CompileStatic import groovy.transform.EqualsAndHashCode -import io.micronaut.core.annotation.Introspected import io.micronaut.core.annotation.NonNull +import io.micronaut.serde.annotation.Serdeable import javax.validation.constraints.NotBlank @CompileStatic @EqualsAndHashCode -@Introspected +@Serdeable class BookRecommendation { @NonNull diff --git a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/Book.java b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/Book.java index 3f0ab9c2228..eaa37f5b9ca 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/Book.java +++ b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/Book.java @@ -1,12 +1,12 @@ package example.micronaut; -import io.micronaut.core.annotation.Introspected; import io.micronaut.core.annotation.NonNull; +import io.micronaut.serde.annotation.Serdeable; import javax.validation.constraints.NotBlank; import java.util.Objects; -@Introspected +@Serdeable public class Book { @NonNull diff --git a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/BookRecommendation.java b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/BookRecommendation.java index 71b5ed76ad5..9a54b1e1a5b 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/BookRecommendation.java +++ b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/java/src/main/java/example/micronaut/BookRecommendation.java @@ -1,11 +1,11 @@ package example.micronaut; -import io.micronaut.core.annotation.Introspected; import io.micronaut.core.annotation.NonNull; +import io.micronaut.serde.annotation.Serdeable; import javax.validation.constraints.NotBlank; -@Introspected +@Serdeable public class BookRecommendation { @NonNull diff --git a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/Book.kt b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/Book.kt index 4110037b21e..2e0411b2de2 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/Book.kt +++ b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/Book.kt @@ -1,8 +1,8 @@ package example.micronaut -import io.micronaut.core.annotation.Introspected +import io.micronaut.serde.annotation.Serdeable import javax.validation.constraints.NotBlank -@Introspected +@Serdeable data class Book(@NotBlank val isbn: String, @NotBlank val name: String) diff --git a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/BookRecommendation.kt b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/BookRecommendation.kt index 19f44168d7d..d66556af3ea 100644 --- a/guides/micronaut-microservices-services-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/BookRecommendation.kt +++ b/guides/micronaut-microservices-services-discover-consul/bookrecommendation/kotlin/src/main/kotlin/example/micronaut/BookRecommendation.kt @@ -1,7 +1,7 @@ package example.micronaut -import io.micronaut.core.annotation.Introspected +import io.micronaut.serde.annotation.Serdeable import javax.validation.constraints.NotBlank -@Introspected +@Serdeable data class BookRecommendation(@NotBlank val name: String) diff --git a/guides/micronaut-microservices-services-discover-consul/metadata.json b/guides/micronaut-microservices-services-discover-consul/metadata.json index fd225cd2d08..494ceded1d5 100644 --- a/guides/micronaut-microservices-services-discover-consul/metadata.json +++ b/guides/micronaut-microservices-services-discover-consul/metadata.json @@ -8,15 +8,15 @@ "apps": [ { "name": "bookcatalogue", - "features": ["discovery-consul", "management", "graalvm"] + "features": ["discovery-consul", "management", "graalvm", "serialization-jackson"] }, { "name": "bookinventory", - "features": ["discovery-consul", "management", "graalvm"] + "features": ["discovery-consul", "management", "graalvm", "serialization-jackson"] }, { "name": "bookrecommendation", - "features": ["discovery-consul", "management", "graalvm", "reactor"] + "features": ["discovery-consul", "management", "graalvm", "reactor", "serialization-jackson"] } ] }