Overloaded method for json property is causing Mapping Exception
com.fasterxml.jackson.databind.JsonMappingException:
Conflicting setter definitions for property tenantID:
org.opendaylight.neutron.spi.NeutronObject#setTenantID(1 params)
vs org.opendaylight.neutron.spi.NeutronObject#setTenantID(1 params)
Change-Id: I6278268203e5a3c593b260df02fb4a6143213d26
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
<bundle>mvn:org.opendaylight.neutron/neutron-spi/{{VERSION}}</bundle>
<bundle>mvn:commons-net/commons-net/{{VERSION}}</bundle>
<bundle>mvn:org.osgi/org.osgi.core/{{VERSION}}</bundle>
+ <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/{{VERSION}}</bundle>
</feature>
<feature name='odl-neutron-transcriber' version='${project.version}' description="OpenDaylight :: Neutron :: Implementation">
<feature version='${project.version}'>odl-neutron-spi</feature>
<artifactId>org.eclipse.persistence.moxy</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-annotations</artifactId>
+ </dependency>
</dependencies>
<build>
<plugins>
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
+import com.fasterxml.jackson.annotation.JsonIgnore;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
@XmlRootElement
}
@Override
+ @JsonIgnore
public void setTenantID(Uuid tenantID) {
this.tenantID = tenantID.getValue().replace("-", "");
}