empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Döbele (JIRA) <empire-db-...@incubator.apache.org>
Subject [jira] [Created] (EMPIREDB-110) Add support for reverse-engineering of foreign-key relationships
Date Wed, 29 Jun 2011 10:27:28 GMT
Add support for reverse-engineering of foreign-key relationships
----------------------------------------------------------------

                 Key: EMPIREDB-110
                 URL: https://issues.apache.org/jira/browse/EMPIREDB-110
             Project: Empire-DB
          Issue Type: New Feature
          Components: CodeGenerator
    Affects Versions: empire-db-2.2.0-incubating
            Reporter: Rainer Döbele
             Fix For: empire-db-2.2.0-incubating


Add support for reverse-engineering of foreign-key relationships by generating the corresponding
source code.
Reported and suggested by Matt DeHourst.

Implementation hints provided by Benjamin Venditti:

    CodeGenParser.populateDatabase(..) : 131 : This is the point where the DatabaseMetaData
is querried and used to populate empire-db's model
    CodeGenWriter.generateCodeFiles(..) : 125 : Is used to serialize the populated model as
java code
    src/main/resources/Database.vm :  70 : This is the velocity template we use to create
the java class for the database. In its default constructor you'd need to add a line for each
relationship similar to this:
                                addRelation( FKTABLE.FK_ID.referenceOn( SOURCE_TABLE.PK_ID
));


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message