title: very strange behavior while getting data from db
body: <p>Util test Case :    </p>
  
  <pre><code>@Test
          public void validate() {
              Map&lt;String,Object&gt; params = new HashMap&lt;String,Object&gt;();
              params.put("code", "23102");
              List&lt;ZipCodes&gt; list = (List&lt;ZipCodes&gt;)this.genericDAO.findByNamedQuery("zipCodesList.findByCode",params);
              if(list!=null){
                  for(ZipCodes zipCodes: list)
                  {
                      System.out.println(zipCodes.getCounty());
                      System.out.println(zipCodes.getStateCode());
                  }
              }
          }
  </code></pre>
  
  <p>database select query and it's data :</p>
  
  <p>select * from zip_codes where code = '23102'</p>
  
  <pre><code>CODE   STATE_CODE     COUNTY
  23102   VA    GOOCHLAND 
  23102   VA    HANOVER   
  23102   VA    LOUISA
  </code></pre>
  
  <p>hql GENRATED IS :</p>
  
  <pre><code>select zipcodes0_.code as code11_, zipcodes0_.city as city11_, zipcodes0_.county as county11_, zipcodes0_.state_code as state4_11_ from zip_codes zipcodes0_ where zipcodes0_.code='23102'
  </code></pre>
  
  <p>Genrated data has all county with same name.</p>
  
  <p>dont know whts going wrong ?</p>
  
  <p>can any help me out?</p>
  
  <p>ZipCodes class</p>
  
  <pre><code>@Entity
  @Table(name = "zip_codes")
  @NamedQueries(value = {
          @NamedQuery(name = "zipCodesList.findByCode", query = "select a from ZipCodes a where a.code=:code")
          })
  public class ZipCodes implements Serializable{
  
      private static final long serialVersionUID = 1L;
  
      @Id
      @Column(name = "code")
      private String code;
  
      @Column(name = "state_code")
      private String stateCode;
  
      @Column(name = "county")
      private String county;
  
      @Column(name = "city")
      private String city;
  
      public String getCode() {
          return code;
      }
  
      public void setCode(String code) {
          this.code = code;
      }
  
      public String getStateCode() {
          return stateCode;
      }
  
      public void setStateCode(String stateCode) {
          this.stateCode = stateCode;
      }
  
      public String getCounty() {
          return county;
      }
  
      public void setCounty(String county) {
          this.county = county;
      }
  
      public String getCity() {
          return city;
      }
  
      public void setCity(String city) {
          this.city = city;
      }
  
  }
  </code></pre>
  
  <p>where i am missing unable to catch ?</p>