 <p>You querying a list of strings from your database and this is what the service returns.</p> <p>Their are multiple ways to achieve your goal.</p> <p>Pure JPA</p> <ol> <li><p>Using @JsonIgnore to tell Jackson not to serialize an attribute</p> <pre><code>class Application { String name; @JsonIgnore String address; } </code></pre></li> <li><p>Create a new Entity class that only contains the attributes you would like to share</p> <pre><code>class ApplicationName { String name; } </code></pre></li> </ol> <p>Alternatively you could introduce a separate class that only contains the attributes you would like to share and convert the results from the query into this class and return than the list of this converted values.</p>