This one time, at band camp, Tommy Lapierre said:
TL>I am using sql-server as a database with stored procedures.
TL>
TL>I can't find a good example for calling the stored procedure from my
TL>java class and also the proper mapping in the mapping.xml.
TL>
TL>Can anyone help
Tommy,
There is an example of what you need in the JDO tests. See the following
files:
src/tests/jdo/StoredProcedure.java (this uses jdo.TestObject)
src/tests/jdo/mapping.xml (search for jdo.TestObject)
src/tests/jdo/oracle.sql (search for proc_check_permissions)
Although very thin, there is some info on this here:
http://www.castor.org/jdo.html#OQLQuery
See the end of the above section for info on using OQL to call a stored
procedure.
HTH
Bruce
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev