Hello,
Gary wrote:
I agree that it may be too fine grained - hence my query as to whether anyone else has created a "skinny" Criteria class (or some such thing).
We have a back-end driven by OJB that is "web service enabled" (buzzword compliant :) through Apache WS Axis. This back-end has it's own Criteria-class/query-builder interfaces exposed in the WSDL. The back-end then builds an SQL criteria from the serialized critera and uses OJB QueryBySQL-class to convert it into an OJB-compatible criteria.
The bySQL-method might not be what you want, but a similar approach could be used for any "skinny" critera classes you create - just unwrap field names and conditions on the server side and assemble corresponding OJB-criterias from those. This way you would not have to expose any OJB-classes in your WSDL.
Regards, Martin
-- Martin Kal�n Curalia AB Web: http://www.curalia.se Orrspelsv�gen 2B Mail: [EMAIL PROTECTED] SE-182 79 Stocksund Tel: +46-8-410 064 40
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
