Tapestry 5
  1. Tapestry 5
  2. TAP5-1132

HibernateGridDataSource should assign the result of Projections.rowCount() to java.lang.Number when determining the number of rows for the configured entity type

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.5
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-hibernate
    • Labels:
      None

      Description

      Earlier versions of Hibernate return an Integer when using Projections.rowCount() through the Criteria API. The latest version of Hibernate changed this and now returns a Long causing a ClassCastException.

      http://fisheye.jboss.org/browse/Hibernate/core/trunk/core/src/main/java/org/hibernate/criterion/RowCountProjection.java?r=17874
      http://fisheye.jboss.org/browse/Hibernate/core/trunk/core/src/main/java/org/hibernate/dialect/Dialect.java?r=19095

      1. TAP5-1132.patch
        0.7 kB
        Dustin Woods

        Activity

        Igor Drobiazko made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.2.0 [ 12314122 ]
        Resolution Fixed [ 1 ]
        Igor Drobiazko made changes -
        Summary HibernateGridDataSource should handle Hibernate < 3.5 rowCount projection as well as Hibernate >= 3.5 HibernateGridDataSource should assign the result of Projections.rowCount() to java.lang.Number when determining the number of rows for the configured entity type
        Affects Version/s 5.1.0.5 [ 12313913 ]
        Igor Drobiazko made changes -
        Assignee Igor Drobiazko [ igor.drobiazko ]
        Dustin Woods made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        Dustin Woods made changes -
        Field Original Value New Value
        Attachment TAP5-1132.patch [ 12443798 ]
        Dustin Woods created issue -

          People

          • Assignee:
            Igor Drobiazko
            Reporter:
            Dustin Woods
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development