title: Remove attribute from object
body: <p>I got a list that return from below db call.</p>
  <pre><code>List&lt;employee&gt; list = empolyeeRepository.findByEmployeeId(id);
  </code></pre>
  <p>List contains employee pojo class object. I want to remove one attribute let's say &quot;employee bank account no&quot; when returning from rest call.</p>
  <pre><code>@RequestMapping(value = &quot;/employeeInformation/{id}&quot;, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
  @Timed
  public List&lt;Employee&gt; getEmployeeInformation(@PathVariable(&quot;id&quot;) String id) throws Exception {
      return empolyeeRepository.findByEmployeeId(id);
  }
  </code></pre>
  <p>Is there any annotation or good practice to do that?</p>