chris williams wrote:
> 
> Is it possible to use castor to map our Java classes
> to stored procedures?  If castor does not support
> this, what would be a rough estimate of the level of
> effort to change castor to use stored procs for all
> database interaction?  We already have a castor
> implementation so avoiding changing our business
> objects in favor of changing castor directly may be an
> ideal solution.
> 
> Thanks,
> ---


Chris, 

Please see http://castor.exolab.org/jdo.html#OQLQuery near the end of
the paragraph. The mappings are no different for a stored procedure
select statement than they would be for a standard dynamic select
statement. Notice in the example that the stored procedure is called and
is told to return as a myapp.Product object. BTW, myapp.Product is in
the Castor sources under src/tests/myapp. 

Bruce

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to