db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Waibel (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OJB-112) Tool for forward engineering from repository.xml
Date Wed, 09 Aug 2006 11:02:15 GMT
    [ http://issues.apache.org/jira/browse/OJB-112?page=comments#action_12426900 ] 
            
Armin Waibel commented on OJB-112:
----------------------------------

Hi Tom,

now the forward engineering tool works nearly perfect.

I found only one specific test mapping (based on a test posted by a user) in OJB-test-suite
that cause problems. It's a "one-side" m:n mapping, the n-side object doesn't list the m-side
objects, thus in the mapping only one class-descriptor declare the m:n-collection-descriptor.
In this case the forward tool only create an indirection table with all m-side FK entries
and completely ignore the n-side FK entries. With the attached test repository (repository_test.xml)
you can reproduce the issue. Don't ask me if this specific use cause makes any sense, but
it would be great if the tool can handle this.

Additionally I start writing a forward engineering howto (section about the 'forward' ant
task is completed  - in bad English ;-)). It would be great if you find time to write a few
words about how to use your tool, requirements, pitfalls. No need to respect the Apache-Forrest
notation simply write the text and send it to me.
http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/doc/forrest/src/documentation/content/xdocs/docu/howtos/howto-forward.xml?view=markup

> Tool for forward engineering from repository.xml
> ------------------------------------------------
>
>                 Key: OJB-112
>                 URL: http://issues.apache.org/jira/browse/OJB-112
>             Project: OJB
>          Issue Type: New Feature
>    Affects Versions: 1.0.4
>            Reporter: Tom Antony
>            Priority: Minor
>         Attachments: repository_mappings_test.xml, RepositoryXmlProcessor.java, src-v1.zip,
src.zip
>
>
> Currently there are no tools which support forward generation from OJB's repository.xml.
Such a tool should read in the metadata mappings and generate the Java bean source code as
well as SQL schema. The SQL schema can be generated in Torque format so that DDLUtils can
generate the DB specific schema.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message