[hibernate-commits] [hibernate/hibernate-core] 7d70a9: HHH-5419: Modified HQL rendering of COUNT function...

noreply at github.com noreply at github.com
Mon Oct 3 02:06:46 EDT 2011


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-core

  Commit: 7d70a909c5b619ee30be40295525ef6a275fb54b
      https://github.com/hibernate/hibernate-core/commit/7d70a909c5b619ee30be40295525ef6a275fb54b
  Author: John Verhaeg <john.verhaeg at gmail.com>
  Date:   2011-10-02 (Sun, 02 Oct 2011)

  Changed paths:
    M hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/expression/function/AggregationFunction.java
  A hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/CompositeId.java
  A hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/CountEntityWithCompositeIdTest.java
  A hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/EntityWithCompositeId.java

  Log Message:
  -----------
  HHH-5419: Modified HQL rendering of COUNT function so that when a non-distinct entity with an ID is specified as a parameter, it renders a star instead of the ID attribute(s).  This allows for greater support across DBs, since some do not support the previous rendering of multiple ID attributes when the ID happens to be a composite ID.




More information about the hibernate-commits mailing list