title: Jackson Ignores Parent Class properties sent via JSON
body: <p>I am creating REST Service with spring boot and defined some classes with inheritence, however I'm not able to receive a JSON payload which I am sending from postman to the controller.</p>
  <p><strong>JSON Payload which I'm sending</strong> :</p>
  <pre><code>{
      &quot;dummy&quot; : &quot;okok&quot;,
      &quot;fullName&quot;: &quot;okok&quot;,
      &quot;mobileNumber&quot;: 1234567890
  
  }
  </code></pre>
  <p><em>I am only getting dummy property in the controller, rest of the properties not getting mapped to POJO</em>.
  Logging statement prints following line on the console</p>
  <pre><code>ownerAccount OwnerAccount(dummy=okok)
  </code></pre>
  <p><em>I think only OwnerAccount constructor is getting invoked and Account properties not getting initialized.</em>
  Please help me understand the missing part or mistake I am doing here.
  I have defined following structure :</p>
  <p><strong>Account.java</strong></p>
  <pre><code>@NoArgsConstructor
  @AllArgsConstructor
  @Data
  public class Account {
      @NotBlank(message = &quot;fullName is mandatory&quot;)
      private String fullName;
      @NotNull(message = &quot;mobileNumber is mandatory&quot;)
      private Long mobileNumber;
      @Valid
      private AddressRequest addressRequest;
  }
  </code></pre>
  <p><strong>OwnerAccount.java</strong></p>
  <pre><code>@NoArgsConstructor
  @Data
  public class OwnerAccount extends Account {
      @NotBlank(message = &quot;dummy is mandatory&quot;)
      private String dummy;
  
  }
  </code></pre>
  <p><strong>OwnerController.java</strong></p>
  <pre><code>@RestController
  @RequestMapping(path = &quot;/api/v1/account/owner&quot;)
  public class OwnerAccountResource {
      private final Logger logger = LoggerFactory.getLogger(this.getClass());
      private OwnerAccountService ownerAccountService;
  
      @Autowired
      public OwnerAccountResource(OwnerAccountService ownerAccountService) {
          this.ownerAccountService = ownerAccountService;
      }
  
      @PostMapping(&quot;/signup&quot;)
      public ResponseEntity createOwnerAccount(@RequestBody @Valid OwnerAccount ownerAccountRequest) {
          logger.info(&quot;ownerAccountDto {}&quot;, ownerAccountRequest);
          return ResponseEntity.ok(ownerAccountService.createAccount(ownerAccountRequest));
      }
  
  }
  </code></pre>