diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateTable.java b/src/main/java/com/avaje/ebean/dbmigration/migration/CreateTable.java index 3435a6d17..4ca9e25b1 100644 --- a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateTable.java +++ b/src/main/java/com/avaje/ebean/dbmigration/migration/CreateTable.java @@ -72,6 +72,8 @@ public class CreateTable { protected String tablespace; @XmlAttribute(name = "indexTablespace") protected String indexTablespace; + @XmlAttribute(name = "comment") + protected String comment; /** * Gets the value of the column property. @@ -352,4 +354,28 @@ public class CreateTable { this.indexTablespace = value; } + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + } diff --git a/src/main/java/com/avaje/ebean/dbmigration/model/MTable.java b/src/main/java/com/avaje/ebean/dbmigration/model/MTable.java index 561f4811f..25e8b5781 100644 --- a/src/main/java/com/avaje/ebean/dbmigration/model/MTable.java +++ b/src/main/java/com/avaje/ebean/dbmigration/model/MTable.java @@ -36,7 +36,7 @@ public class MTable { private final String name; - private String remarks; + private String comment; private String tablespace; @@ -65,7 +65,7 @@ public class MTable { */ public MTable(CreateTable createTable) { this.name = createTable.getName(); - this.remarks = createTable.getRemarks(); + this.comment = createTable.getComment(); this.tablespace = createTable.getTablespace(); this.indexTablespace = createTable.getIndexTablespace(); this.withHistory = createTable.isWithHistory(); @@ -90,7 +90,7 @@ public class MTable { CreateTable createTable = new CreateTable(); createTable.setName(name); - createTable.setRemarks(remarks); + createTable.setComment(comment); createTable.setTablespace(tablespace); createTable.setIndexTablespace(indexTablespace); createTable.setWithHistory(withHistory); @@ -140,8 +140,8 @@ public class MTable { return name; } - public String getRemarks() { - return remarks; + public String getComment() { + return comment; } public String getTablespace() { diff --git a/src/main/resources/ebean-dbmigration-1.0.xsd b/src/main/resources/ebean-dbmigration-1.0.xsd index 96394a3c4..fe72b0e0f 100644 --- a/src/main/resources/ebean-dbmigration-1.0.xsd +++ b/src/main/resources/ebean-dbmigration-1.0.xsd @@ -278,7 +278,7 @@ - +