title: @JsonIgnore is not working
body: <p>For some reason the annotation @JsonIgnore does not work in my project.
  I already read on some answers that this can be caused by using different incompatible Jackson versions (org.codehaus vs. com.fasterxml), but I am getting my jackson library only through one dependency (afaik), so that should not be the problem. </p>
  
  <pre><code>@Entity
  @Table(name = "employee", schema = "klk")
  public class Employee implements Serializable{
      private static final long serialVersionUID = 1L;
      @Id
      @GeneratedValue
      @Column(name = "id", unique = true, nullable = false)
      private Integer id;
      @Basic
      @Column(name = "firstName", nullable = false)
      private String firstName;
      @Basic
      @Column(name = "lastName", nullable = false)
      private String lastName;
      @Basic
      @Column(name = "password", nullable = false)
      @JsonIgnore
      private String password;
      @Basic
      @Column(name = "token", unique = true)
      @JsonIgnore
      private String token;
  </code></pre>
  
  <p>Pom.xml:</p>
  
  <pre><code>&lt;dependencies&gt;  
    &lt;!-- https://mvnrepository.com/artifact/com.eclipsesource.jaxrs/jersey-all--&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.eclipsesource.jaxrs&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-all&lt;/artifactId&gt;
          &lt;version&gt;2.22.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/org.glassfish.jersey.media/jersey-media-moxy --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-media-moxy&lt;/artifactId&gt;
          &lt;version&gt;2.26&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;5.1.39&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/org.eclipse.persistence/eclipselink --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;eclipselink&lt;/artifactId&gt;
          &lt;version&gt;2.6.4&lt;/version&gt;
      &lt;/dependency&gt;
  
    &lt;/dependencies&gt;
  </code></pre>
  
  <p>The output: </p>
  
  <pre><code>{
      "id":1,
      "firstName": "John",
      "lastName": "Doe",
      "password": "password",
      "token": "token
  }
  </code></pre>
  
  <p>Does someone have an idea why the annotations are not working in my example?</p>