[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2163) Unable to locate appropriate constructor

lucols (JIRA) noreply at atlassian.com
Tue Oct 24 08:57:04 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2163?page=comments#action_24971 ] 

lucols commented on HHH-2163:
-----------------------------

I have found the reason  from :http://opensource.atlassian.com/projects/hibernate/browse/HHH-1538.
Beacuse sum(Integer ) function  return type is Long , and myObject 's constructor is myObject(Integer,Double),so I change the constructor  can resolve it. 

My suggest: Dont change hibernate   with  one man purpose only .


> Unable to locate appropriate constructor
> ----------------------------------------
>
>          Key: HHH-2163
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2163
>      Project: Hibernate3
>         Type: Bug

>   Components: query-hql
>     Versions: 3.2.0.ga
>  Environment: tomcat5.5.15, geronimo1.1.1, jboss4.4GA 
>     Reporter: lucols
>     Priority: Minor

>
>
> MyEntity  attrubute s: int id  , Double income , Integer times ;
>  my query: 
>     hql = "select new myObject(sum(me.income),sum(me.times) ) from MyEntity me " ;
>     Query q = session.createQuery(hql);
>     List tm = q.list();
> when run the test , throws PropertyNotFoundException and report : Unable to locate appropriate constructor.
> But I use hibernate3.1.3 , the problem no be found.
> Any hint , thanks.
>  

-- 
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