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)