You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by "Rainer Döbele (JIRA)" <em...@incubator.apache.org> on 2009/09/20 22:14:16 UTC
[jira] Created: (EMPIREDB-52) CodeGenerator project setup
CodeGenerator project setup
---------------------------
Key: EMPIREDB-52
URL: https://issues.apache.org/jira/browse/EMPIREDB-52
Project: Empire-DB
Issue Type: New Feature
Components: CodeGenerator
Affects Versions: empire-db-2.0.6
Reporter: Rainer Döbele
Fix For: empire-db-2.0.6
The empire-db code generator is a new subproject which should be capable of generating source code classes from an existing database.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (EMPIREDB-52) CodeGenerator project setup
Posted by "Francis De Brabandere (JIRA)" <em...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/EMPIREDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12785555#action_12785555 ]
Francis De Brabandere commented on EMPIREDB-52:
-----------------------------------------------
CODEGEN-0.5.patch applied
> CodeGenerator project setup
> ---------------------------
>
> Key: EMPIREDB-52
> URL: https://issues.apache.org/jira/browse/EMPIREDB-52
> Project: Empire-DB
> Issue Type: New Feature
> Components: CodeGenerator
> Affects Versions: empire-db-2.0.6-incubating
> Reporter: Rainer Döbele
> Fix For: empire-db-2.0.6-incubating
>
> Attachments: codegen-0.4.patch, codegen-0.5.patch, codegen.0.3.patch
>
>
> The empire-db code generator is a new subproject which should be capable of generating source code classes from an existing database.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (EMPIREDB-52) CodeGenerator project setup
Posted by "Benjamin Venditti (JIRA)" <em...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/EMPIREDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Venditti updated EMPIREDB-52:
--------------------------------------
Attachment: codegen-0.5.patch
Hi there,
I have created a small patch that adds the functionality for creating nested table classes withn the database class, instead of creating separate table class files.
The patch contains the following changes:
modifications:
- CodeGenWriter.java
- Database.vm
- Table.vm
> CodeGenerator project setup
> ---------------------------
>
> Key: EMPIREDB-52
> URL: https://issues.apache.org/jira/browse/EMPIREDB-52
> Project: Empire-DB
> Issue Type: New Feature
> Components: CodeGenerator
> Affects Versions: empire-db-2.0.6-incubating
> Reporter: Rainer Döbele
> Fix For: empire-db-2.0.6-incubating
>
> Attachments: codegen-0.4.patch, codegen-0.5.patch, codegen.0.3.patch
>
>
> The empire-db code generator is a new subproject which should be capable of generating source code classes from an existing database.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (EMPIREDB-52) CodeGenerator project setup
Posted by "Benjamin Venditti (JIRA)" <em...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/EMPIREDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Venditti updated EMPIREDB-52:
--------------------------------------
Attachment: codegen.0.3.patch
Hi there,
i have crated a eclipse-patch (0.3) that contains the codegenerator with very basic functionality and considers rainers changes.
I have taken care of multi-column primary keys and unclosed ResultSets.
The generator is quit basic at the moment and the following will not work:
- nested table generation within the database
- relation mapping (foreign key dependencies)
- views
- name prefix for tables, views
I also removed some lines from the thom's code like special getters/setters for primary/locking columns.
Additional configuration options were added "catalogName" and "tablePattern". They can be used to further specify the metadata to be read from the database.
I'd be happy if anyone could have a look at it.
> CodeGenerator project setup
> ---------------------------
>
> Key: EMPIREDB-52
> URL: https://issues.apache.org/jira/browse/EMPIREDB-52
> Project: Empire-DB
> Issue Type: New Feature
> Components: CodeGenerator
> Affects Versions: empire-db-2.0.6-incubating
> Reporter: Rainer Döbele
> Fix For: empire-db-2.0.6-incubating
>
> Attachments: codegen.0.3.patch
>
>
> The empire-db code generator is a new subproject which should be capable of generating source code classes from an existing database.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (EMPIREDB-52) CodeGenerator project setup
Posted by "Benjamin Venditti (JIRA)" <em...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/EMPIREDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Venditti updated EMPIREDB-52:
--------------------------------------
Attachment: codegen-0.4.patch
Hi there,
I have created a new patch that will get rid of the additional Database, Table and Column bean classes.
The codegen now uses the empire DBDatabase, DBTable and DBColumn classes instead.
The patch contains the following changes:
modifications:
- CodeGen.java
- CodeGenConfig.java
- config.xml
- Database.vm
- Record.vm
- Table.vm
deletions:
- package org.apache.empire.db.codegen.types
- StringUtils.java // partly moved to ParserUtil.java
additions:
- CodeGenParser.java // Used to create a empty DBDatabase and to populate that
- ParserUtil.java // Used by the velocity templates to get strings like accessor name, mutator name, table class name, record class name ...
> CodeGenerator project setup
> ---------------------------
>
> Key: EMPIREDB-52
> URL: https://issues.apache.org/jira/browse/EMPIREDB-52
> Project: Empire-DB
> Issue Type: New Feature
> Components: CodeGenerator
> Affects Versions: empire-db-2.0.6-incubating
> Reporter: Rainer Döbele
> Fix For: empire-db-2.0.6-incubating
>
> Attachments: codegen-0.4.patch, codegen.0.3.patch
>
>
> The empire-db code generator is a new subproject which should be capable of generating source code classes from an existing database.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (EMPIREDB-52) CodeGenerator project setup
Posted by "Rainer Döbele (JIRA)" <em...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/EMPIREDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rainer Döbele closed EMPIREDB-52.
---------------------------------
Resolution: Fixed
Assignee: Rainer Döbele
Done
> CodeGenerator project setup
> ---------------------------
>
> Key: EMPIREDB-52
> URL: https://issues.apache.org/jira/browse/EMPIREDB-52
> Project: Empire-DB
> Issue Type: New Feature
> Components: CodeGenerator
> Affects Versions: empire-db-2.0.6-incubating
> Reporter: Rainer Döbele
> Assignee: Rainer Döbele
> Fix For: empire-db-2.0.6-incubating
>
> Attachments: codegen-0.4.patch, codegen-0.5.patch, codegen.0.3.patch
>
>
> The empire-db code generator is a new subproject which should be capable of generating source code classes from an existing database.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.