hi marco,
it's a flag in the query.
Criteria crit = new Criteria();
crit.addLike("allArticlesInGroup.articleName", "C%");
// distinct
QueryByCriteria q = QueryFactory.newQuery(ProductGroup.class, crit, true);
jakob
Marco Jos� wrote:
Hi all,
Can anybody tell me in a few words how to execute the following SQL
(Oracle) instruction with OJB:
SELECT DISTINCT fieldname FROM tablename
I allready tried it with QueryBySQL QueryByCriteria and
ReportQueryByCriteria but it never worked.
Thank you in advance.
Marco Jos�
--- This message may contain confidential information or privileged material, and is intended only for the individual(s) named. If you are not a named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Critical Software.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
