hi antonio,

the class is only required to avoid a NullPointerException and it must be defined in the repository. the class does not affect the SQL. i admit using an arbitrary class is not very elegant (i'd prefer passing null), but today it's the only solution.

jakob

Antonio Gallardo wrote:

Jakob Braeuchi dijo:

hi antonio,

the queries provided by ojb require a class to be defined in the
repository. you can use any class defined in the repository in the
SQL-Query:

QueryBySQL q = QueryFactory.newQuery(AnyClass.class,"select
mySequence.nextval from dual");
Iterator iter = broker.getReportQueryIteratorByQuery(q);


Problem I see is I have not any class, it is an independent sequence in
the database. Can I create a dummy class just to take it?

Best Regards,

Antonio Gallardo


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to