Using getReportQueryIteratorByQuery

"Ali HACHAMI" <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
 Hi,
I'm using getReportQueryIteratorByQuery and I want to select columns that
have the same name but are not present in my criteria :


Criteria crit1 = new Criteria();
crit1.addEqualTo("id", new Integer(1));

q = QueryFactory.newReportQuery(Container.class, crit1);

String[] cols = { id, "name", "refOtherClass.name "};
q.setAttributes(cls);

The pb is that I'm getting the same value for the columns "name" and "
refOtherClass.name".

Any help?
Thanks in advance,

Ali
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.