Skip to content

@com.fasterxml.jackson.annotation.JsonTypeInfo in xjb file not adding annotations to jaxb classes. #58

@dileepg2k

Description

@dileepg2k

@com.fasterxml.jackson.annotation.JsonTypeInfo in xjb file not adding annotations to jaxb classes though build is success. Please let me know how to add this annotation to jaxb classes trough binding.

	<jaxb:bindings node="//xs:element[@name='Class']">
			<annox:annotate target="field">
				@com.fasterxml.jackson.annotation.JsonTypeInfo(property = "class")
			</annox:annotate>				
           </jaxb:bindings>

Below plugin is used.
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions