I've added a patch to Jira Issue GERONIMO-143 (http://nagoya.apache.org/jira/secure/ViewIssue.jspa?key=GERONIMO-143) that is a first draft of my code to automatically generate the deployment SQL for CMP EJBs.

Previously, testing deployment of CMPs required the coder to write the SQL himself, based on his knowledge of the methods. Now you simply define the java types that are being input/output, and the field names that are being input/output (and map fields to columns), and the SQL is written for you automatically, as well as the SimpleCommandFactory.defineQuery invocation being done behind the scenese.

This is a rough cut, but it does the job; there is a full jUnit regression test included.

This should help move forward with writing more of the CMP Deployment code; it includes some of the stuff I'm working on to simplify slot/field map lookups.

Please let me know if anyone has any issues (or successes!)

-Brendan



Reply via email to