001package io.ebeaninternal.dbmigration.migration; 002 003import javax.xml.bind.annotation.XmlAccessType; 004import javax.xml.bind.annotation.XmlAccessorType; 005import javax.xml.bind.annotation.XmlElement; 006import javax.xml.bind.annotation.XmlRootElement; 007import javax.xml.bind.annotation.XmlType; 008import java.util.ArrayList; 009import java.util.List; 010 011 012/** 013 * <p>Java class for anonymous complex type. 014 * 015 * <p>The following schema fragment specifies the expected content contained within this class. 016 * 017 * <pre> 018 * <complexType> 019 * <complexContent> 020 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 021 * <sequence> 022 * <element ref="{http://ebean-orm.github.io/xml/ns/dbmigration}changeSet" maxOccurs="unbounded"/> 023 * </sequence> 024 * </restriction> 025 * </complexContent> 026 * </complexType> 027 * </pre> 028 */ 029@XmlAccessorType(XmlAccessType.FIELD) 030@XmlType(name = "", propOrder = { 031 "changeSet" 032}) 033@XmlRootElement(name = "migration") 034public class Migration { 035 036 @XmlElement(required = true) 037 protected List<ChangeSet> changeSet; 038 039 /** 040 * Gets the value of the changeSet property. 041 * 042 * <p> 043 * This accessor method returns a reference to the live list, 044 * not a snapshot. Therefore any modification you make to the 045 * returned list will be present inside the JAXB object. 046 * This is why there is not a <CODE>set</CODE> method for the changeSet property. 047 * 048 * <p> 049 * For example, to add a new item, do as follows: 050 * <pre> 051 * getChangeSet().add(newItem); 052 * </pre> 053 * 054 * 055 * <p> 056 * Objects of the following type(s) are allowed in the list 057 * {@link ChangeSet } 058 */ 059 public List<ChangeSet> getChangeSet() { 060 if (changeSet == null) { 061 changeSet = new ArrayList<>(); 062 } 063 return this.changeSet; 064 } 065 066}