You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Kasper Sørensen (JIRA)" <ji...@apache.org> on 2013/10/09 09:40:44 UTC

[jira] [Created] (METAMODEL-29) CreateTable builder API only supports adding one column

Kasper Sørensen created METAMODEL-29:
----------------------------------------

             Summary: CreateTable builder API only supports adding one column
                 Key: METAMODEL-29
                 URL: https://issues.apache.org/jira/browse/METAMODEL-29
             Project: Metamodel
          Issue Type: Bug
            Reporter: Kasper Sørensen
            Priority: Minor


The CreateTable class which can be used as a pre-built UpdateScript implementation has a flaw in it's interface since it only supports calling the "withColumn" method once. This is how it's supposed to work:

{code}
UpdateableDataContext dc = ...
dc.executeUpdate(new CreateTable("foo").withColumn("bar").ofType(VARCHAR).withColumn("baz").ofType(INTEGER));
{code}

But it seems unfortunately the returned interface after the first withColumn call isn't properly letting you call withColumn again.



--
This message was sent by Atlassian JIRA
(v6.1#6144)