Changeset 6619


Ignore:
Timestamp:
Nov 24, 2014, 11:32:27 AM (8 years ago)
Author:
Nicklas Nordborg
Message:

References #1742: Upgrade to Hibernate 4.x

Fixed an issue with Hibernate throwing a ClassCastException when using setEntity on a query using StatelessSession. Hibernate tried to cast this to a Session object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/DiskUsageStatistics.java

    r4517 r6619  
    214214        GROUP BY du.location, du.quotaType.systemId
    215215      */
    216       query.setEntity("user", user.getData());
     216      query.setInteger("user", user.getId());
    217217      loadDiskUsage(query);
    218218    }
     
    229229        GROUP BY du.location, du.quotaType.systemId
    230230      */
    231       query.setEntity("group", group.getData());
     231      query.setInteger("group", group.getId());
    232232      loadDiskUsage(query);   
    233233    }
Note: See TracChangeset for help on using the changeset viewer.