[JAVA] [SPRING] [PKMST] [MICRONAUT] XML wireformat: Fix Jackson useWrapping=false, JAXB+Jackson namespaces (#18870)

* Fix XML annotations on model properties (JavaSpring)

* generate JAXB annotations for attributes and elements

* generate wrapper annotations (JAXB and Jackson)

* use XML config from items for annotations of containers

* Add test for Jackson XML wrapper correctness

* Add additional test cases to cover all xml applications in spec

Test now covers all use cases described in
- https://web.archive.org/web/20240424203304/https://swagger.io/docs/specification/data-models/representing-xml/
- https://spec.openapis.org/oas/v3.0.0#xml-arrays

* Fix basename used instead of xmlName when items.xmlName is unset

See last example in spec: https://spec.openapis.org/oas/v3.0.0#xml-arrays

* Harmonize spacing between Annotation attribute name and value

* Refactor and group JAXB vs. Jackson XML annotations, only generate latter if enabled

This is in line with the way the class annotations in `xmlAnnotations.mustache`
are rendered – which only renders the `@Jackson`… xml annotations if
additionalProperty jackson is true.

Also reorder annotation attributes in the following order:
- localName/name
- namespace (optional)
- isAttribute/useWrapping (optional)

* Explicitly render `useWrapping = true` to @JacksonXmlElementWrapper

This was slightly inspired by @jzrebiec via PR #5371.

Wrapping is the default since Jackson 2.1 – so explicitly rendering
this will:
- make generated model work out-of-the-box in Jackson 2.0 for instance
- ensure the models still work if the local `XmlWrapper` was
  configured with `useXmlWrapper(false)`

* Move xml test spec to java resources folder (not spring specific)

* Make test class name match class-under-test

This makes discovery & cross-navigation in IDE easier.

* Add complete xml annotations test for Java generators

* Fix Java PKMST generator not generating @JacksonXmlElementWrapper

* Fix Java microprofile generator missing @JacksonXmlRootElement

* Fix Java microprofile generator not using wrapper annotations and namespaces

* Fix Java Micronaut Client creating invalid (unclosed) @XmlAttribute annotations

* Fix Micronaut Client using wrong localName for @JacksonXmlElementWrapper

* Fix Micronaut client rendering @JacksonXmlProperty annotation twice

* Make Java Micronaut render @JacksonXmlElementWrapper(useWrapping=false) for non-wrapped elements

* Fix Jackson element using `xml.name` when it should be `items.xml.name`

Closes #5989
Closes #3223
Relates to #9371

* Fix JAXB element using `baseName` instead of `xmlName` when items.xmlName is unset

* Remove XML generation debug output from templates

* Remove redundant newline between XML class annotations and class

Brings the SpringCodegen in line with other Java Codegen's

* Remove redundant newline between XML setter annotations and setter

* Fix multiline JavaDoc block indentation and format

* Simplify / condense xml annotation template into single lines

May look a bit more complex, but cuts out a lot of repetitiveness.
Also reorders annotation attributes in the following order:
- localName/name
- namespace (optional)
- isAttribute/useWrapping (optional)

* Harmonize spacing between Annotation attribute name and value

* Remove unused jackson_annotations partial

Was not referenced anywhere in java-helidon resources folder

---------

Co-authored-by: Christian Schuster <christian@dnup.de>
This commit is contained in:
Philzen
2024-06-15 17:02:32 +02:00
committed by GitHub
parent 13facdaab5
commit 642b1a3a95
2726 changed files with 20424 additions and 20024 deletions

View File

@@ -35,7 +35,7 @@ public class AdditionalPropertiesAnyTypeDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public String getName() {

View File

@@ -36,7 +36,7 @@ public class AdditionalPropertiesArrayDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public String getName() {

View File

@@ -35,7 +35,7 @@ public class AdditionalPropertiesBooleanDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public String getName() {

View File

@@ -74,7 +74,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get mapString
* @return mapString
*/
*/
@JsonProperty("map_string")
public Map<String, String> getMapString() {
@@ -101,7 +101,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get mapNumber
* @return mapNumber
*/
*/
@JsonProperty("map_number")
public Map<String, BigDecimal> getMapNumber() {
@@ -128,7 +128,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get mapInteger
* @return mapInteger
*/
*/
@JsonProperty("map_integer")
public Map<String, Integer> getMapInteger() {
@@ -155,7 +155,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get mapBoolean
* @return mapBoolean
*/
*/
@JsonProperty("map_boolean")
public Map<String, Boolean> getMapBoolean() {
@@ -182,7 +182,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get mapArrayInteger
* @return mapArrayInteger
*/
*/
@JsonProperty("map_array_integer")
public Map<String, List<Integer>> getMapArrayInteger() {
@@ -209,7 +209,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get mapArrayAnytype
* @return mapArrayAnytype
*/
*/
@JsonProperty("map_array_anytype")
public Map<String, List<Object>> getMapArrayAnytype() {
@@ -236,7 +236,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get mapMapString
* @return mapMapString
*/
*/
@JsonProperty("map_map_string")
public Map<String, Map<String, String>> getMapMapString() {
@@ -263,7 +263,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get mapMapAnytype
* @return mapMapAnytype
*/
*/
@JsonProperty("map_map_anytype")
public Map<String, Map<String, Object>> getMapMapAnytype() {
@@ -282,7 +282,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get anytype1
* @return anytype1
*/
*/
@JsonProperty("anytype_1")
public Object getAnytype1() {
@@ -301,7 +301,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get anytype2
* @return anytype2
*/
*/
@JsonProperty("anytype_2")
public JsonNullable<Object> getAnytype2() {
@@ -320,7 +320,7 @@ public class AdditionalPropertiesClassDto {
/**
* Get anytype3
* @return anytype3
*/
*/
@JsonProperty("anytype_3")
public Object getAnytype3() {

View File

@@ -35,7 +35,7 @@ public class AdditionalPropertiesIntegerDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public String getName() {

View File

@@ -36,7 +36,7 @@ public class AdditionalPropertiesNumberDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public String getName() {

View File

@@ -36,7 +36,7 @@ public class AdditionalPropertiesObjectDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public String getName() {

View File

@@ -35,7 +35,7 @@ public class AdditionalPropertiesStringDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public String getName() {

View File

@@ -50,7 +50,7 @@ public class AnimalDto {
/**
* Get className
* @return className
*/
*/
@NotNull
@JsonProperty("className")
public String getClassName() {
@@ -69,7 +69,7 @@ public class AnimalDto {
/**
* Get color
* @return color
*/
*/
@JsonProperty("color")
public String getColor() {

View File

@@ -35,7 +35,7 @@ public class ApiResponseDto {
/**
* Get code
* @return code
*/
*/
@JsonProperty("code")
public Integer getCode() {
@@ -54,7 +54,7 @@ public class ApiResponseDto {
/**
* Get type
* @return type
*/
*/
@JsonProperty("type")
public String getType() {
@@ -73,7 +73,7 @@ public class ApiResponseDto {
/**
* Get message
* @return message
*/
*/
@JsonProperty("message")
public String getMessage() {

View File

@@ -44,7 +44,7 @@ public class ArrayOfArrayOfNumberOnlyDto {
/**
* Get arrayArrayNumber
* @return arrayArrayNumber
*/
*/
@JsonProperty("ArrayArrayNumber")
public List<List<BigDecimal>> getArrayArrayNumber() {

View File

@@ -44,7 +44,7 @@ public class ArrayOfNumberOnlyDto {
/**
* Get arrayNumber
* @return arrayNumber
*/
*/
@JsonProperty("ArrayNumber")
public List<BigDecimal> getArrayNumber() {

View File

@@ -50,7 +50,7 @@ public class ArrayTestDto {
/**
* Get arrayOfString
* @return arrayOfString
*/
*/
@JsonProperty("array_of_string")
public List<String> getArrayOfString() {
@@ -77,7 +77,7 @@ public class ArrayTestDto {
/**
* Get arrayArrayOfInteger
* @return arrayArrayOfInteger
*/
*/
@JsonProperty("array_array_of_integer")
public List<List<Long>> getArrayArrayOfInteger() {
@@ -104,7 +104,7 @@ public class ArrayTestDto {
/**
* Get arrayArrayOfModel
* @return arrayArrayOfModel
*/
*/
@JsonProperty("array_array_of_model")
public List<List<ReadOnlyFirstDto>> getArrayArrayOfModel() {

View File

@@ -80,7 +80,7 @@ public class BigCatDto extends CatDto {
/**
* Get kind
* @return kind
*/
*/
@JsonProperty("kind")
public KindEnum getKind() {

View File

@@ -41,7 +41,7 @@ public class CapitalizationDto {
/**
* Get smallCamel
* @return smallCamel
*/
*/
@JsonProperty("smallCamel")
public String getSmallCamel() {
@@ -60,7 +60,7 @@ public class CapitalizationDto {
/**
* Get capitalCamel
* @return capitalCamel
*/
*/
@JsonProperty("CapitalCamel")
public String getCapitalCamel() {
@@ -79,7 +79,7 @@ public class CapitalizationDto {
/**
* Get smallSnake
* @return smallSnake
*/
*/
@JsonProperty("small_Snake")
public String getSmallSnake() {
@@ -98,7 +98,7 @@ public class CapitalizationDto {
/**
* Get capitalSnake
* @return capitalSnake
*/
*/
@JsonProperty("Capital_Snake")
public String getCapitalSnake() {
@@ -117,7 +117,7 @@ public class CapitalizationDto {
/**
* Get scAETHFlowPoints
* @return scAETHFlowPoints
*/
*/
@JsonProperty("SCA_ETH_Flow_Points")
public String getScAETHFlowPoints() {
@@ -136,7 +136,7 @@ public class CapitalizationDto {
/**
* Name of the pet
* @return ATT_NAME
*/
*/
@JsonProperty("ATT_NAME")
public String getATTNAME() {

View File

@@ -47,7 +47,7 @@ public class CatDto extends AnimalDto {
/**
* Get declawed
* @return declawed
*/
*/
@JsonProperty("declawed")
public Boolean getDeclawed() {

View File

@@ -37,7 +37,7 @@ public class CategoryDto {
/**
* Get id
* @return id
*/
*/
@JsonProperty("id")
public Long getId() {
@@ -56,7 +56,7 @@ public class CategoryDto {
/**
* Get name
* @return name
*/
*/
@NotNull
@JsonProperty("name")
public String getName() {

View File

@@ -39,7 +39,7 @@ public class ChildWithNullableDto extends ParentWithNullableDto {
/**
* Get otherProperty
* @return otherProperty
*/
*/
@JsonProperty("otherProperty")
public String getOtherProperty() {

View File

@@ -31,7 +31,7 @@ public class ClassModelDto {
/**
* Get propertyClass
* @return propertyClass
*/
*/
@JsonProperty("_class")
public String getPropertyClass() {

View File

@@ -31,7 +31,7 @@ public class ClientDto {
/**
* Get client
* @return client
*/
*/
@JsonProperty("client")
public String getClient() {

View File

@@ -58,7 +58,7 @@ public class ContainerDefaultValueDto {
/**
* Get nullableArray
* @return nullableArray
*/
*/
@JsonProperty("nullable_array")
public JsonNullable<List<String>> getNullableArray() {
@@ -85,7 +85,7 @@ public class ContainerDefaultValueDto {
/**
* Get nullableRequiredArray
* @return nullableRequiredArray
*/
*/
@NotNull
@JsonProperty("nullable_required_array")
public JsonNullable<List<String>> getNullableRequiredArray() {
@@ -112,7 +112,7 @@ public class ContainerDefaultValueDto {
/**
* Get requiredArray
* @return requiredArray
*/
*/
@NotNull
@JsonProperty("required_array")
public List<String> getRequiredArray() {
@@ -139,7 +139,7 @@ public class ContainerDefaultValueDto {
/**
* Get nullableArrayWithDefault
* @return nullableArrayWithDefault
*/
*/
@JsonProperty("nullable_array_with_default")
public JsonNullable<List<String>> getNullableArrayWithDefault() {

View File

@@ -40,7 +40,7 @@ public class DogDto extends AnimalDto {
/**
* Get breed
* @return breed
*/
*/
@JsonProperty("breed")
public String getBreed() {

View File

@@ -108,7 +108,7 @@ public class EnumArraysDto {
/**
* Get justSymbol
* @return justSymbol
*/
*/
@JsonProperty("just_symbol")
public JustSymbolEnum getJustSymbol() {
@@ -135,7 +135,7 @@ public class EnumArraysDto {
/**
* Get arrayEnum
* @return arrayEnum
*/
*/
@JsonProperty("array_enum")
public List<ArrayEnumEnum> getArrayEnum() {

View File

@@ -189,7 +189,7 @@ public class EnumTestDto {
/**
* Get enumString
* @return enumString
*/
*/
@JsonProperty("enum_string")
public EnumStringEnum getEnumString() {
@@ -208,7 +208,7 @@ public class EnumTestDto {
/**
* Get enumStringRequired
* @return enumStringRequired
*/
*/
@NotNull
@JsonProperty("enum_string_required")
public EnumStringRequiredEnum getEnumStringRequired() {
@@ -227,7 +227,7 @@ public class EnumTestDto {
/**
* Get enumInteger
* @return enumInteger
*/
*/
@JsonProperty("enum_integer")
public EnumIntegerEnum getEnumInteger() {
@@ -246,7 +246,7 @@ public class EnumTestDto {
/**
* Get enumNumber
* @return enumNumber
*/
*/
@JsonProperty("enum_number")
public EnumNumberEnum getEnumNumber() {
@@ -265,7 +265,7 @@ public class EnumTestDto {
/**
* Get outerEnum
* @return outerEnum
*/
*/
@JsonProperty("outerEnum")
public OuterEnumDto getOuterEnum() {

View File

@@ -31,7 +31,7 @@ public class FileDto {
/**
* Test capitalization
* @return sourceURI
*/
*/
@JsonProperty("sourceURI")
public String getSourceURI() {

View File

@@ -38,7 +38,7 @@ public class FileSchemaTestClassDto {
/**
* Get file
* @return file
*/
*/
@JsonProperty("file")
public FileDto getFile() {
@@ -65,7 +65,7 @@ public class FileSchemaTestClassDto {
/**
* Get files
* @return files
*/
*/
@JsonProperty("files")
public List<FileDto> getFiles() {

View File

@@ -71,7 +71,7 @@ public class FormatTestDto {
* minimum: 10
* maximum: 100
* @return integer
*/
*/
@JsonProperty("integer")
public Integer getInteger() {
@@ -92,7 +92,7 @@ public class FormatTestDto {
* minimum: 20
* maximum: 200
* @return int32
*/
*/
@JsonProperty("int32")
public Integer getInt32() {
@@ -111,7 +111,7 @@ public class FormatTestDto {
/**
* Get int64
* @return int64
*/
*/
@JsonProperty("int64")
public Long getInt64() {
@@ -132,7 +132,7 @@ public class FormatTestDto {
* minimum: 32.1
* maximum: 543.2
* @return number
*/
*/
@NotNull
@JsonProperty("number")
public BigDecimal getNumber() {
@@ -153,7 +153,7 @@ public class FormatTestDto {
* minimum: 54.3
* maximum: 987.6
* @return _float
*/
*/
@JsonProperty("float")
public Float getFloat() {
@@ -174,7 +174,7 @@ public class FormatTestDto {
* minimum: 67.8
* maximum: 123.4
* @return _double
*/
*/
@JsonProperty("double")
public Double getDouble() {
@@ -193,7 +193,7 @@ public class FormatTestDto {
/**
* Get string
* @return string
*/
*/
@JsonProperty("string")
public String getString() {
@@ -212,7 +212,7 @@ public class FormatTestDto {
/**
* Get _byte
* @return _byte
*/
*/
@NotNull
@JsonProperty("byte")
public byte[] getByte() {
@@ -231,7 +231,7 @@ public class FormatTestDto {
/**
* Get binary
* @return binary
*/
*/
@JsonProperty("binary")
public org.springframework.core.io.Resource getBinary() {
@@ -250,7 +250,7 @@ public class FormatTestDto {
/**
* Get date
* @return date
*/
*/
@NotNull
@JsonProperty("date")
public LocalDate getDate() {
@@ -269,7 +269,7 @@ public class FormatTestDto {
/**
* Get dateTime
* @return dateTime
*/
*/
@JsonProperty("dateTime")
public OffsetDateTime getDateTime() {
@@ -288,7 +288,7 @@ public class FormatTestDto {
/**
* Get uuid
* @return uuid
*/
*/
@JsonProperty("uuid")
public UUID getUuid() {
@@ -307,7 +307,7 @@ public class FormatTestDto {
/**
* Get password
* @return password
*/
*/
@NotNull
@JsonProperty("password")
public String getPassword() {
@@ -326,7 +326,7 @@ public class FormatTestDto {
/**
* Get bigDecimal
* @return bigDecimal
*/
*/
@JsonProperty("BigDecimal")
public BigDecimal getBigDecimal() {

View File

@@ -33,7 +33,7 @@ public class HasOnlyReadOnlyDto {
/**
* Get bar
* @return bar
*/
*/
@JsonProperty("bar")
public String getBar() {
@@ -52,7 +52,7 @@ public class HasOnlyReadOnlyDto {
/**
* Get foo
* @return foo
*/
*/
@JsonProperty("foo")
public String getFoo() {

View File

@@ -31,7 +31,7 @@ public class ListDto {
/**
* Get _123list
* @return _123list
*/
*/
@JsonProperty("123-list")
public String get123list() {

View File

@@ -87,7 +87,7 @@ public class MapTestDto {
/**
* Get mapMapOfString
* @return mapMapOfString
*/
*/
@JsonProperty("map_map_of_string")
public Map<String, Map<String, String>> getMapMapOfString() {
@@ -114,7 +114,7 @@ public class MapTestDto {
/**
* Get mapOfEnumString
* @return mapOfEnumString
*/
*/
@JsonProperty("map_of_enum_string")
public Map<String, InnerEnum> getMapOfEnumString() {
@@ -141,7 +141,7 @@ public class MapTestDto {
/**
* Get directMap
* @return directMap
*/
*/
@JsonProperty("direct_map")
public Map<String, Boolean> getDirectMap() {
@@ -168,7 +168,7 @@ public class MapTestDto {
/**
* Get indirectMap
* @return indirectMap
*/
*/
@JsonProperty("indirect_map")
public Map<String, Boolean> getIndirectMap() {

View File

@@ -43,7 +43,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto {
/**
* Get uuid
* @return uuid
*/
*/
@JsonProperty("uuid")
public UUID getUuid() {
@@ -62,7 +62,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto {
/**
* Get dateTime
* @return dateTime
*/
*/
@JsonProperty("dateTime")
public OffsetDateTime getDateTime() {
@@ -89,7 +89,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassDto {
/**
* Get map
* @return map
*/
*/
@JsonProperty("map")
public Map<String, AnimalDto> getMap() {

View File

@@ -33,7 +33,7 @@ public class Model200ResponseDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public Integer getName() {
@@ -52,7 +52,7 @@ public class Model200ResponseDto {
/**
* Get propertyClass
* @return propertyClass
*/
*/
@JsonProperty("class")
public String getPropertyClass() {

View File

@@ -41,7 +41,7 @@ public class NameDto {
/**
* Get name
* @return name
*/
*/
@NotNull
@JsonProperty("name")
public Integer getName() {
@@ -60,7 +60,7 @@ public class NameDto {
/**
* Get snakeCase
* @return snakeCase
*/
*/
@JsonProperty("snake_case")
public Integer getSnakeCase() {
@@ -79,7 +79,7 @@ public class NameDto {
/**
* Get property
* @return property
*/
*/
@JsonProperty("property")
public String getProperty() {
@@ -98,7 +98,7 @@ public class NameDto {
/**
* Get _123number
* @return _123number
*/
*/
@JsonProperty("123Number")
public Integer get123number() {

View File

@@ -45,7 +45,7 @@ public class NullableMapPropertyDto {
/**
* Get languageValues
* @return languageValues
*/
*/
@JsonProperty("languageValues")
public JsonNullable<Map<String, String>> getLanguageValues() {

View File

@@ -32,7 +32,7 @@ public class NumberOnlyDto {
/**
* Get justNumber
* @return justNumber
*/
*/
@JsonProperty("JustNumber")
public BigDecimal getJustNumber() {

View File

@@ -82,7 +82,7 @@ public class OrderDto {
/**
* Get id
* @return id
*/
*/
@JsonProperty("id")
public Long getId() {
@@ -101,7 +101,7 @@ public class OrderDto {
/**
* Get petId
* @return petId
*/
*/
@JsonProperty("petId")
public Long getPetId() {
@@ -120,7 +120,7 @@ public class OrderDto {
/**
* Get quantity
* @return quantity
*/
*/
@JsonProperty("quantity")
public Integer getQuantity() {
@@ -139,7 +139,7 @@ public class OrderDto {
/**
* Get shipDate
* @return shipDate
*/
*/
@JsonProperty("shipDate")
public OffsetDateTime getShipDate() {
@@ -158,7 +158,7 @@ public class OrderDto {
/**
* Order Status
* @return status
*/
*/
@JsonProperty("status")
public StatusEnum getStatus() {
@@ -177,7 +177,7 @@ public class OrderDto {
/**
* Get complete
* @return complete
*/
*/
@JsonProperty("complete")
public Boolean getComplete() {

View File

@@ -36,7 +36,7 @@ public class OuterCompositeDto {
/**
* Get myNumber
* @return myNumber
*/
*/
@JsonProperty("my_number")
public BigDecimal getMyNumber() {
@@ -55,7 +55,7 @@ public class OuterCompositeDto {
/**
* Get myString
* @return myString
*/
*/
@JsonProperty("my_string")
public String getMyString() {
@@ -74,7 +74,7 @@ public class OuterCompositeDto {
/**
* Get myBoolean
* @return myBoolean
*/
*/
@JsonProperty("my_boolean")
public Boolean getMyBoolean() {

View File

@@ -81,7 +81,7 @@ public class ParentWithNullableDto {
/**
* Get type
* @return type
*/
*/
@JsonProperty("type")
public TypeEnum getType() {
@@ -100,7 +100,7 @@ public class ParentWithNullableDto {
/**
* Get nullableProperty
* @return nullableProperty
*/
*/
@JsonProperty("nullableProperty")
public JsonNullable<String> getNullableProperty() {

View File

@@ -94,7 +94,7 @@ public class PetDto {
/**
* Get id
* @return id
*/
*/
@JsonProperty("id")
public Long getId() {
@@ -113,7 +113,7 @@ public class PetDto {
/**
* Get category
* @return category
*/
*/
@JsonProperty("category")
public CategoryDto getCategory() {
@@ -132,7 +132,7 @@ public class PetDto {
/**
* Get name
* @return name
*/
*/
@NotNull
@JsonProperty("name")
public String getName() {
@@ -159,7 +159,7 @@ public class PetDto {
/**
* Get photoUrls
* @return photoUrls
*/
*/
@NotNull
@JsonProperty("photoUrls")
public Set<String> getPhotoUrls() {
@@ -187,7 +187,7 @@ public class PetDto {
/**
* Get tags
* @return tags
*/
*/
@JsonProperty("tags")
public List<TagDto> getTags() {
@@ -207,7 +207,7 @@ public class PetDto {
* pet status in the store
* @return status
* @deprecated
*/
*/
@JsonProperty("status")
@Deprecated
@@ -217,7 +217,7 @@ public class PetDto {
/**
* @deprecated
*/
*/
@Deprecated
public void setStatus(StatusEnum status) {
this.status = status;

View File

@@ -33,7 +33,7 @@ public class ReadOnlyFirstDto {
/**
* Get bar
* @return bar
*/
*/
@JsonProperty("bar")
public String getBar() {
@@ -52,7 +52,7 @@ public class ReadOnlyFirstDto {
/**
* Get baz
* @return baz
*/
*/
@JsonProperty("baz")
public String getBaz() {

View File

@@ -37,7 +37,7 @@ public class ResponseObjectWithDifferentFieldNamesDto {
/**
* Get normalPropertyName
* @return normalPropertyName
*/
*/
@JsonProperty("normalPropertyName")
public String getNormalPropertyName() {
@@ -56,7 +56,7 @@ public class ResponseObjectWithDifferentFieldNamesDto {
/**
* Get UPPER_CASE_PROPERTY_SNAKE
* @return UPPER_CASE_PROPERTY_SNAKE
*/
*/
@JsonProperty("UPPER_CASE_PROPERTY_SNAKE")
public String getUPPERCASEPROPERTYSNAKE() {
@@ -75,7 +75,7 @@ public class ResponseObjectWithDifferentFieldNamesDto {
/**
* Get lowerCasePropertyDashes
* @return lowerCasePropertyDashes
*/
*/
@JsonProperty("lower-case-property-dashes")
public String getLowerCasePropertyDashes() {
@@ -94,7 +94,7 @@ public class ResponseObjectWithDifferentFieldNamesDto {
/**
* Get propertyNameWithSpaces
* @return propertyNameWithSpaces
*/
*/
@JsonProperty("property name with spaces")
public String getPropertyNameWithSpaces() {

View File

@@ -31,7 +31,7 @@ public class ReturnDto {
/**
* Get _return
* @return _return
*/
*/
@JsonProperty("return")
public Integer getReturn() {

View File

@@ -31,7 +31,7 @@ public class SpecialModelNameDto {
/**
* Get $specialPropertyName
* @return $specialPropertyName
*/
*/
@JsonProperty("$special[property.name]")
public Long get$SpecialPropertyName() {

View File

@@ -33,7 +33,7 @@ public class TagDto {
/**
* Get id
* @return id
*/
*/
@JsonProperty("id")
public Long getId() {
@@ -52,7 +52,7 @@ public class TagDto {
/**
* Get name
* @return name
*/
*/
@JsonProperty("name")
public String getName() {

View File

@@ -48,7 +48,7 @@ public class TypeHolderDefaultDto {
/**
* Get stringItem
* @return stringItem
*/
*/
@NotNull
@JsonProperty("string_item")
public String getStringItem() {
@@ -67,7 +67,7 @@ public class TypeHolderDefaultDto {
/**
* Get numberItem
* @return numberItem
*/
*/
@NotNull
@JsonProperty("number_item")
public BigDecimal getNumberItem() {
@@ -86,7 +86,7 @@ public class TypeHolderDefaultDto {
/**
* Get integerItem
* @return integerItem
*/
*/
@NotNull
@JsonProperty("integer_item")
public Integer getIntegerItem() {
@@ -105,7 +105,7 @@ public class TypeHolderDefaultDto {
/**
* Get boolItem
* @return boolItem
*/
*/
@NotNull
@JsonProperty("bool_item")
public Boolean getBoolItem() {
@@ -132,7 +132,7 @@ public class TypeHolderDefaultDto {
/**
* Get arrayItem
* @return arrayItem
*/
*/
@NotNull
@JsonProperty("array_item")
public List<Integer> getArrayItem() {

View File

@@ -50,7 +50,7 @@ public class TypeHolderExampleDto {
/**
* Get stringItem
* @return stringItem
*/
*/
@NotNull
@JsonProperty("string_item")
public String getStringItem() {
@@ -69,7 +69,7 @@ public class TypeHolderExampleDto {
/**
* Get numberItem
* @return numberItem
*/
*/
@NotNull
@JsonProperty("number_item")
public BigDecimal getNumberItem() {
@@ -88,7 +88,7 @@ public class TypeHolderExampleDto {
/**
* Get floatItem
* @return floatItem
*/
*/
@NotNull
@JsonProperty("float_item")
public Float getFloatItem() {
@@ -107,7 +107,7 @@ public class TypeHolderExampleDto {
/**
* Get integerItem
* @return integerItem
*/
*/
@NotNull
@JsonProperty("integer_item")
public Integer getIntegerItem() {
@@ -126,7 +126,7 @@ public class TypeHolderExampleDto {
/**
* Get boolItem
* @return boolItem
*/
*/
@NotNull
@JsonProperty("bool_item")
public Boolean getBoolItem() {
@@ -153,7 +153,7 @@ public class TypeHolderExampleDto {
/**
* Get arrayItem
* @return arrayItem
*/
*/
@NotNull
@JsonProperty("array_item")
public List<Integer> getArrayItem() {

View File

@@ -45,7 +45,7 @@ public class UserDto {
/**
* Get id
* @return id
*/
*/
@JsonProperty("id")
public Long getId() {
@@ -64,7 +64,7 @@ public class UserDto {
/**
* Get username
* @return username
*/
*/
@JsonProperty("username")
public String getUsername() {
@@ -83,7 +83,7 @@ public class UserDto {
/**
* Get firstName
* @return firstName
*/
*/
@JsonProperty("firstName")
public String getFirstName() {
@@ -102,7 +102,7 @@ public class UserDto {
/**
* Get lastName
* @return lastName
*/
*/
@JsonProperty("lastName")
public String getLastName() {
@@ -121,7 +121,7 @@ public class UserDto {
/**
* Get email
* @return email
*/
*/
@JsonProperty("email")
public String getEmail() {
@@ -140,7 +140,7 @@ public class UserDto {
/**
* Get password
* @return password
*/
*/
@JsonProperty("password")
public String getPassword() {
@@ -159,7 +159,7 @@ public class UserDto {
/**
* Get phone
* @return phone
*/
*/
@JsonProperty("phone")
public String getPhone() {
@@ -178,7 +178,7 @@ public class UserDto {
/**
* User Status
* @return userStatus
*/
*/
@JsonProperty("userStatus")
public Integer getUserStatus() {

View File

@@ -100,7 +100,7 @@ public class XmlItemDto {
/**
* Get attributeString
* @return attributeString
*/
*/
@JsonProperty("attribute_string")
public String getAttributeString() {
@@ -119,7 +119,7 @@ public class XmlItemDto {
/**
* Get attributeNumber
* @return attributeNumber
*/
*/
@JsonProperty("attribute_number")
public BigDecimal getAttributeNumber() {
@@ -138,7 +138,7 @@ public class XmlItemDto {
/**
* Get attributeInteger
* @return attributeInteger
*/
*/
@JsonProperty("attribute_integer")
public Integer getAttributeInteger() {
@@ -157,7 +157,7 @@ public class XmlItemDto {
/**
* Get attributeBoolean
* @return attributeBoolean
*/
*/
@JsonProperty("attribute_boolean")
public Boolean getAttributeBoolean() {
@@ -184,7 +184,7 @@ public class XmlItemDto {
/**
* Get wrappedArray
* @return wrappedArray
*/
*/
@JsonProperty("wrapped_array")
public List<Integer> getWrappedArray() {
@@ -203,7 +203,7 @@ public class XmlItemDto {
/**
* Get nameString
* @return nameString
*/
*/
@JsonProperty("name_string")
public String getNameString() {
@@ -222,7 +222,7 @@ public class XmlItemDto {
/**
* Get nameNumber
* @return nameNumber
*/
*/
@JsonProperty("name_number")
public BigDecimal getNameNumber() {
@@ -241,7 +241,7 @@ public class XmlItemDto {
/**
* Get nameInteger
* @return nameInteger
*/
*/
@JsonProperty("name_integer")
public Integer getNameInteger() {
@@ -260,7 +260,7 @@ public class XmlItemDto {
/**
* Get nameBoolean
* @return nameBoolean
*/
*/
@JsonProperty("name_boolean")
public Boolean getNameBoolean() {
@@ -287,7 +287,7 @@ public class XmlItemDto {
/**
* Get nameArray
* @return nameArray
*/
*/
@JsonProperty("name_array")
public List<Integer> getNameArray() {
@@ -314,7 +314,7 @@ public class XmlItemDto {
/**
* Get nameWrappedArray
* @return nameWrappedArray
*/
*/
@JsonProperty("name_wrapped_array")
public List<Integer> getNameWrappedArray() {
@@ -333,7 +333,7 @@ public class XmlItemDto {
/**
* Get prefixString
* @return prefixString
*/
*/
@JsonProperty("prefix_string")
public String getPrefixString() {
@@ -352,7 +352,7 @@ public class XmlItemDto {
/**
* Get prefixNumber
* @return prefixNumber
*/
*/
@JsonProperty("prefix_number")
public BigDecimal getPrefixNumber() {
@@ -371,7 +371,7 @@ public class XmlItemDto {
/**
* Get prefixInteger
* @return prefixInteger
*/
*/
@JsonProperty("prefix_integer")
public Integer getPrefixInteger() {
@@ -390,7 +390,7 @@ public class XmlItemDto {
/**
* Get prefixBoolean
* @return prefixBoolean
*/
*/
@JsonProperty("prefix_boolean")
public Boolean getPrefixBoolean() {
@@ -417,7 +417,7 @@ public class XmlItemDto {
/**
* Get prefixArray
* @return prefixArray
*/
*/
@JsonProperty("prefix_array")
public List<Integer> getPrefixArray() {
@@ -444,7 +444,7 @@ public class XmlItemDto {
/**
* Get prefixWrappedArray
* @return prefixWrappedArray
*/
*/
@JsonProperty("prefix_wrapped_array")
public List<Integer> getPrefixWrappedArray() {
@@ -463,7 +463,7 @@ public class XmlItemDto {
/**
* Get namespaceString
* @return namespaceString
*/
*/
@JsonProperty("namespace_string")
public String getNamespaceString() {
@@ -482,7 +482,7 @@ public class XmlItemDto {
/**
* Get namespaceNumber
* @return namespaceNumber
*/
*/
@JsonProperty("namespace_number")
public BigDecimal getNamespaceNumber() {
@@ -501,7 +501,7 @@ public class XmlItemDto {
/**
* Get namespaceInteger
* @return namespaceInteger
*/
*/
@JsonProperty("namespace_integer")
public Integer getNamespaceInteger() {
@@ -520,7 +520,7 @@ public class XmlItemDto {
/**
* Get namespaceBoolean
* @return namespaceBoolean
*/
*/
@JsonProperty("namespace_boolean")
public Boolean getNamespaceBoolean() {
@@ -547,7 +547,7 @@ public class XmlItemDto {
/**
* Get namespaceArray
* @return namespaceArray
*/
*/
@JsonProperty("namespace_array")
public List<Integer> getNamespaceArray() {
@@ -574,7 +574,7 @@ public class XmlItemDto {
/**
* Get namespaceWrappedArray
* @return namespaceWrappedArray
*/
*/
@JsonProperty("namespace_wrapped_array")
public List<Integer> getNamespaceWrappedArray() {
@@ -593,7 +593,7 @@ public class XmlItemDto {
/**
* Get prefixNsString
* @return prefixNsString
*/
*/
@JsonProperty("prefix_ns_string")
public String getPrefixNsString() {
@@ -612,7 +612,7 @@ public class XmlItemDto {
/**
* Get prefixNsNumber
* @return prefixNsNumber
*/
*/
@JsonProperty("prefix_ns_number")
public BigDecimal getPrefixNsNumber() {
@@ -631,7 +631,7 @@ public class XmlItemDto {
/**
* Get prefixNsInteger
* @return prefixNsInteger
*/
*/
@JsonProperty("prefix_ns_integer")
public Integer getPrefixNsInteger() {
@@ -650,7 +650,7 @@ public class XmlItemDto {
/**
* Get prefixNsBoolean
* @return prefixNsBoolean
*/
*/
@JsonProperty("prefix_ns_boolean")
public Boolean getPrefixNsBoolean() {
@@ -677,7 +677,7 @@ public class XmlItemDto {
/**
* Get prefixNsArray
* @return prefixNsArray
*/
*/
@JsonProperty("prefix_ns_array")
public List<Integer> getPrefixNsArray() {
@@ -704,7 +704,7 @@ public class XmlItemDto {
/**
* Get prefixNsWrappedArray
* @return prefixNsWrappedArray
*/
*/
@JsonProperty("prefix_ns_wrapped_array")
public List<Integer> getPrefixNsWrappedArray() {