[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4514) ClassCastException at runtime

Amit (JIRA) noreply at atlassian.com
Thu Oct 22 07:07:33 EDT 2009


ClassCastException at runtime
-----------------------------

                 Key: HHH-4514
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4514
             Project: Hibernate Core
          Issue Type: Bug
          Components: query-hql
    Affects Versions: 3.2.7
         Environment: development 
            Reporter: Amit
         Attachments: HibernatePPHQDAO.java

I have read in the migration guide regarding the changes but not sure how to incorporate following  into my existing code.

  Configuration classicCfg = new Configuration(); 
  classicCfg.addSqlFunction( "count", new ClassicCountFunction()); 
  classicCfg.addSqlFunction( "avg", new ClassicAvgFunction()); 
  classicCfg.addSqlFunction( "sum", new ClassicSumFunction()); 
  SessionFactory classicSf = classicCfg.buildSessionFactory();


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list