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 "Christian Albrecht (Updated) (JIRA)" <em...@incubator.apache.org> on 2012/01/23 15:20:43 UTC

[jira] [Updated] (EMPIREDB-128) Velocity Template Table.vm does not handle tables without primary keys

     [ https://issues.apache.org/jira/browse/EMPIREDB-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Albrecht updated EMPIREDB-128:
----------------------------------------

    Attachment: empire-db-codegen.patch
    
> Velocity Template Table.vm does not handle tables without primary keys
> ----------------------------------------------------------------------
>
>                 Key: EMPIREDB-128
>                 URL: https://issues.apache.org/jira/browse/EMPIREDB-128
>             Project: Empire-DB
>          Issue Type: Bug
>          Components: CodeGenerator
>    Affects Versions: empire-db-2.2.0-incubating
>            Reporter: Christian Albrecht
>            Priority: Minor
>         Attachments: empire-db-codegen.patch
>
>
> After generating sources for a few tables and getting compile errors, I noticed the Table.vm template does not handle tables without primary keys.
> A line with the method call 'setPrimaryKey(new DBTableColumn[] { ' was created, which is obviously not complete and can be omited.
> I created a patch that targets this problem. The patch file is attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira