#374 - Update ModelDiff and migration generation

This commit is contained in:
Robin Bygrave
2015-08-15 00:06:24 +12:00
parent 0a6941bda5
commit bd9acab335
2 changed files with 147 additions and 0 deletions
@@ -0,0 +1,87 @@
package com.avaje.ebean.dbmigration.migration;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;attribute name="baseTable" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="whenCreatedColumn" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "addHistoryTable")
public class AddHistoryTable {
@XmlAttribute(name = "baseTable", required = true)
protected String baseTable;
@XmlAttribute(name = "whenCreatedColumn")
protected String whenCreatedColumn;
/**
* Gets the value of the baseTable property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBaseTable() {
return baseTable;
}
/**
* Sets the value of the baseTable property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBaseTable(String value) {
this.baseTable = value;
}
/**
* Gets the value of the whenCreatedColumn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWhenCreatedColumn() {
return whenCreatedColumn;
}
/**
* Sets the value of the whenCreatedColumn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWhenCreatedColumn(String value) {
this.whenCreatedColumn = value;
}
}
@@ -0,0 +1,60 @@
package com.avaje.ebean.dbmigration.migration;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;attribute name="baseTable" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "alterHistoryTable")
public class AlterHistoryTable {
@XmlAttribute(name = "baseTable", required = true)
protected String baseTable;
/**
* Gets the value of the baseTable property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBaseTable() {
return baseTable;
}
/**
* Sets the value of the baseTable property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBaseTable(String value) {
this.baseTable = value;
}
}