/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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.
 */

package org.apache.shardingsphere.core.parse.old.parser.context.condition;

import com.google.common.base.Objects;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.ToString;

/**
 * Column.
 *
 * @author zhangliang
 * @author caohao
 */
@RequiredArgsConstructor
@Getter
@ToString
public final class Column {
    
    private final String name;
    
    private final String tableName;
    
    @Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (null == obj || getClass() != obj.getClass()) {
            return false;
        }
        Column column = (Column) obj;
        return Objects.equal(this.name.toUpperCase(), column.name.toUpperCase()) && Objects.equal(this.tableName.toUpperCase(), column.tableName.toUpperCase()); 
    }
    
    @Override
    public int hashCode() {
        return Objects.hashCode(name.toUpperCase(), tableName.toUpperCase()); 
    } 
}

@@ -911,16 +911,56 @@
 bjects;%0A
+import com.google.common.base.Splitter;%0A
 import l
@@ -1035,16 +1035,120 @@
 oString;
+%0Aimport org.apache.shardingsphere.core.exception.ShardingConfigurationException;%0A%0Aimport java.util.List;
 %0A%0A/**%0A *
@@ -1199,16 +1199,35 @@
  caohao%0A
+ * @author panjuan%0A
  */%0A@Req
@@ -1294,24 +1294,78 @@
 lumn %7B%0A    %0A
+    private static final String DELIMITER = %22.%22;%0A    %0A
     private 
@@ -1425,24 +1425,563 @@
 eName;%0A    %0A
+    public Column(final String column) %7B%0A        if (!isValidColumn(column)) %7B%0A            throw new ShardingConfigurationException(%22Invalid format for column: '%25s'%22, column);%0A        %7D%0A        List%3CString%3E segments = Splitter.on(DELIMITER).splitToList(column);%0A        tableName = segments.get(0);%0A        name = segments.get(1);%0A    %7D%0A    %0A    private static boolean isValidColumn(final String columnNodeStr) %7B%0A        return columnNodeStr.contains(DELIMITER) && 2 == Splitter.on(DELIMITER).splitToList(columnNodeStr).size();%0A    %7D%0A    %0A
     @Overrid

use DELIMITER to generate column