Re: ClassCastException with SQLResult and SQLTemplate

2011-09-01 Thread Sylwia Bugla
wrote: > Ah got it, the exception is in your code, not the Cayenne code. > > Your SQLResult defines the result as Object[], so this is what you are > getting here. You can either keep casting to Map and remove the SQLResult > code. Or keep using SQLResult and cast to Object[] > &

Re: ClassCastException with SQLResult and SQLTemplate

2011-09-01 Thread Sylwia Bugla
extra columns X and CNT? Thank you. On 1 September 2011 13:37, Andrus Adamchik wrote: > Could you please post the exception stack trace? > > On Sep 1, 2011, at 1:58 AM, Sylwia Bugla wrote: > >> Hello everyone. >> I am getting desperate about this issue. I have a simple pi

Re: ClassCastException with SQLResult and SQLTemplate

2011-09-01 Thread Sylwia Bugla
extra columns X and CNT? Thank you. On 1 September 2011 13:37, Andrus Adamchik wrote: > Could you please post the exception stack trace? > > On Sep 1, 2011, at 1:58 AM, Sylwia Bugla wrote: > >> Hello everyone. >> I am getting desperate about this issue. I have a simple pi

ClassCastException with SQLResult and SQLTemplate

2011-08-31 Thread Sylwia Bugla
Hello everyone. I am getting desperate about this issue. I have a simple piece of code whose purpose is to make some counts in the database. It goes like this: String sql = "SELECT a.author_id X, count(*) CNT FROM `publication_authors` a WHERE a.`cid` != 0 and a.cid = 1234 group by a.author_id OR