title: Generic object returned instead of class entity in hibernate query
body: <p>I am running a hibernate query which is returning an Object instead of the correct entity object.  The statement is as follows:</p>
  
  <pre><code>public List getPriorBids(String rfpCD, String carrierCode) {
      String sqlString =  " SELECT inland_cd, " +
                                  "rfp_cd, " +
                                  "carrier_cd, " +
                                  "port_cd, " +
                                  "max(iteration_nb) as iteration_nb " +
                          " FROM care.inland_bid " +
                          " WHERE rfp_cd = :rfpCode " +
                          "   AND carrier_cd = :carrierCode " +
                          " GROUP BY inland_cd, rfp_cd, carrier_cd, port_cd " +
                          " ORDER BY inland_cd, carrier_cd"; 
      SQLQuery sqlQuery = session.createSQLQuery(sqlString);
      sqlQuery.setString("carrierCode",carrierCode);
      sqlQuery.setString("rfpCode", rfpCD);
      sqlQuery.addEntity(Bid.class);
      List bids = sqlQuery.list();
      return bids;
     }
  </code></pre>
  
  <p>Clearly I am trying to store it as a Bid object.  I have another object as well which I should be storing it as but I get an error that the column name cannot be found, despite double and triple checking column names to make sure they match.</p>