/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */

package io.shardingsphere.core.parsing.integrate.jaxb.item;

import lombok.Getter;
import lombok.Setter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@XmlAccessorType(XmlAccessType.FIELD)
public final class ExpectedDistinctSelectItem {
    
    @XmlAttribute
    private String alias;
    
    @XmlElement(name = "distinct-column")
    private List<String> distinctColumnNames = new ArrayList<>();
}

@@ -924,19 +924,72 @@
 java
-.util.Array
+x.xml.bind.annotation.XmlElementWrapper;%0Aimport java.util.Linked
 List
@@ -1166,24 +1166,74 @@
 alias;%0A    %0A
+    @XmlElementWrapper(name = %22distinct-columns%22)%0A
     @XmlElem
@@ -1317,13 +1317,14 @@
 new 
-Array
+Linked
 List

modify ExpectedDistinctSelectItem