generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Deserialization improvements * Improve subtypes * Sonar * Different approach to buffering * Improve * spotless * Improve --------- Co-authored-by: yawkat <jonas.konrad@oracle.com>
- Loading branch information
Showing
25 changed files
with
2,184 additions
and
1,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.micronaut.serde.data; | ||
|
||
import io.micronaut.core.annotation.Introspected; | ||
|
||
@Introspected | ||
public record Name(String firstName, String lastName) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.micronaut.serde.data; | ||
|
||
import com.fasterxml.jackson.annotation.JsonUnwrapped; | ||
import io.micronaut.core.annotation.Introspected; | ||
|
||
@Introspected | ||
public class User { | ||
private Long id; | ||
@JsonUnwrapped | ||
private Name name; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public Name getName() { | ||
return name; | ||
} | ||
|
||
public void setName(Name name) { | ||
this.name = name; | ||
} | ||
} |
Oops, something went wrong.