title: Jackson and Lombok: MismatchedInputException when Attributes are Objects
body: <p>I have a Job class looking like this:</p>
  
  <pre><code>@Entity
  @Table
  @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
  @Data
  @NoArgsConstructor
  public class Job implements Serializable {
  
      private static final long serialVersionUID = 1L;
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
  
      @NotNull
      @Column(nullable = false)
      private String job;
  
      @ManyToOne
      @JsonIgnoreProperties("jobs")
      private Job next;
  
  </code></pre>
  
  <p>and a method to create jobs:</p>
  
  <pre><code>    @PostMapping("/jobs")
      public ResponseEntity&lt;Job&gt; createJob(@Valid @RequestBody Job job) throws URISyntaxException {
          Job result = jobRepository.save(job);
          return ...
      }
  </code></pre>
  
  <p>Everything works fine until here. Adding the @AllArgsConstructor to the Job class now leads to an MismatchedInputException.</p>
  
  <pre><code>Bad Request: JSON parse error: Cannot construct instance of `xxx.domain.Job` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `xxx.domain.Job` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator) 
  </code></pre>
  
  <p>I tried to add <code>lombok.anyConstructor.addConstructorProperties = true</code> to lombok.config file, as described in may answers I found. But this leads only to following error:</p>
  
  <pre><code>[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ project-name ---
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 27 source files to /path/target/test-classes
  Unknown key 'lombok.anyConstructor.addConstructorProperties' (/path/lombok.config:2)
  </code></pre>
  
  <p>I tried to use an older version of lombok, as I found some github issues addressing this problem on updating lombok. Also, no success (tried version 1.16.18)</p>
  
  <p>I tried also to remove the <code>private Job next</code> attribute which made the code work without any errors. So this must somehow be a problem with this?</p>