[jboss-user] [EJB 3.0] - Re: Weired Query Synthax exception???
rahb
do-not-reply at jboss.com
Fri Nov 14 02:27:50 EST 2008
Thansk for the quick reply............
I am getting next problem as
I using this query
select new com.CReport(cdtwk.cStartDate) " +
" from CByDateWeek cdtwk where cdtwk.pk.cId
but it's not finding constructor in class CReport class...
Data type cStartDate in CByDateWeek is Date
I have constructor in CReport class as
public CReport(Date sdate){
...
}
public CReport(Time sdate){
...
}
public CReport(TimeStamp sdate){
...
}
but nothing is working ..it says
Constructor not found exception.......what to more try???
02:16:41,265 ERROR [PARSER] Unable to locate appropriate constructor on class [com.CReport]
[cause=org.hibernate.PropertyNotFoundException: no appropriate constructor in class: com.CReport]
In more detail
Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor on class com.CReport.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189291#4189291
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189291
More information about the jboss-user
mailing list