package com.example;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Subject {
  public Integer id;
  public String name;

  public Subject() {
    this.id = null;
    this.name = null;
  }

  public Subject(
    Integer id,
    String name
  ) {
    this.id = id;
    this.name = name;
  }
}

@@ -238,23 +238,22 @@
 ct(%0A    
-Integer
+String
  id,%0A   
@@ -287,16 +287,49 @@
 .id = id
+ == null ? null : new Integer(id)
 ;%0A    th

Rework a constructor