All Downloads are FREE. Search and download functionalities are using the official Maven repository.

handlebars.JavaVertXServer.typeInfoAnnotation.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.48
Show newest version
{{#jackson}}
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "{{discriminator.propertyName}}", visible = true )
@JsonSubTypes({
  {{#if discriminator.mapping}}
    {{#each discriminator.mapping}}
        @JsonSubTypes.Type(value = {{this}}.class, name = "{{@key}}"),
    {{/each}}
  {{else}}
    {{#children}}
        @JsonSubTypes.Type(value = {{classname}}.class, name = "{{name}}"),
    {{/children}}
  {{/if}}
})
{{/jackson}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy