title: Entity retrieved from database with same case as in query
body: <p>My database contains the following table:</p>
  
  <p>table:</p>
  
  <pre><code>country {
      code varchar(255) not null
          primary key
  };
  </code></pre>
  
  <p>class:</p>
  
  <pre><code>@Entity
  public class Country {
      @Id
      @Column(name = "code")
      private String mCode;
  
      public String getCode() {
          return mCode;
      }
  
      public void setCode(String code) {
          mCode = code;
      }
  }
  </code></pre>
  
  <p>sample table rows:</p>
  
  <pre><code>| code |
  |------|
  | USA  |
  | UK   |
  </code></pre>
  
  <p>When I retrieve a country using the following CrudRepository:</p>
  
  <pre><code>public interface CountryRepository extends CrudRepository&lt;Country, String&gt; {
  }
  </code></pre>
  
  <p>First scenario:</p>
  
  <pre><code>mRepository.findOne("USA")
  </code></pre>
  
  <p>It will give me the following result in my rest api:</p>
  
  <pre><code>{
    "code": "USA"
  }
  </code></pre>
  
  <p>Second scenario:</p>
  
  <pre><code>mRepository.findOne("UsA")
  </code></pre>
  
  <p>It will give me the following result in my rest api:</p>
  
  <pre><code>{
    "code": "UsA"
  }
  </code></pre>
  
  <p>Third scenario:</p>
  
  <pre><code>mRepository.findOne("Usa")
  </code></pre>
  
  <p>It will give me the following result in my rest api:</p>
  
  <pre><code>{
    "code": "Usa"
  }
  </code></pre>
  
  <p>I have also inspected the same behavior using the debugger and found my object in memory actually have the same behavior.</p>
  
  <p><strong>What I Want:</strong> I want the returned data to be the same case as in database.</p>