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
@Value | |
@Builder | |
public class ApiProduct { | |
private Long id; | |
private String caption; | |
private String description; | |
} |
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
@JsonProperty("date") | |
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") | |
private Calendar someDate; |
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
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern= "yyyy-MM-dd") | |
private Calendar someDate; |
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
@JsonFormat(shape = JsonFormat.Shape.STRING) | |
private Calendar someDate; |
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
import com.fasterxml.jackson.annotation.JsonFormat; | |
@JsonFormat(shape = JsonFormat.Shape.OBJECT) | |
public enum JacksonExampleEnum { | |
OPTION_1("0", "0"), OPTION_2("1", "1"); | |
private String a; | |
private String b; | |
JacksonTestEnum(String a, String b) { |
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
import com.fasterxml.jackson.annotation.JsonValue; | |
public enum JacksonExampleEnum { | |
OPTION_1("0", "0"), OPTION_2("1", "1"); | |
private String a; | |
private String b; | |
JacksonTestEnum(String a, String b) { | |
this.a = a; | |
this.b = b; |
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
import java.util.Calendar; | |
import lombok.Builder; | |
import lombok.Value; | |
import com.fasterxml.jackson.annotation.JsonFormat; | |
import com.fasterxml.jackson.annotation.JsonIgnore; | |
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | |
import com.fasterxml.jackson.databind.annotation.JsonNaming; |
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
public enum JacksonExampleEnum { | |
OPTION_1("0", "0"), OPTION_2("1", "1"); | |
private String a; | |
private String b; | |
JacksonTestEnum(String a, String b) { | |
this.a = a; | |
this.b = b; | |
} |
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
import java.util.Calendar; | |
import lombok.Builder; | |
import lombok.Value; | |
import com.fasterxml.jackson.annotation.JsonFormat; | |
import com.fasterxml.jackson.annotation.JsonIgnore; | |
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | |
import com.fasterxml.jackson.databind.annotation.JsonNaming; |
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
import java.util.Calendar; | |
import lombok.Builder; | |
import lombok.Value; | |
import com.fasterxml.jackson.annotation.JsonIgnore; | |
@Builder | |
@Value |
NewerOlder