title: Hibernate inheritance update problem when generate HT table
body: <p>I have a problem about Hibernate 4.3.11 , I have two pojos : X and Y that Y extends X ,  Actually Y is a subjoin class in X.hbm . When i excute this update on Y pojo , All of the Y records have updated ,but I want to update Y where id is 123  </p>
  
  <p>This my HQL :  </p>
  
  <pre><code>string hql = " update Y set Y.name = :name where e.id = :id "  
  Query query = getSession().createQuery(hql);  
  query.setParameter("name",name);  
  query.setParameter("id",123);  
  query.executeUpdate();  
  </code></pre>
  
  <p>When it excutes query it generates this SQL command :  </p>
  
  <pre><code>update Y set Y.name = ? where (X_Id) IN(select X_Id from HT_Y)
  </code></pre>
  
  <p>Moreover I don't want to use createSQLQuery(...) , Do you have any solution to help me?</p>