/*
 * 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.sharding.route.engine.condition;

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

/**
 * Column.
 */
@RequiredArgsConstructor
@Getter
@ToString
public final class Column {
    
    private final String name;
    
    private final String tableName;
    
    @Override
    public boolean equals(final Object obj) {
        if (obj instanceof Column) {
            Column column = (Column) obj;
            return Objects.equal(name.toUpperCase(), column.name.toUpperCase()) && Objects.equal(tableName.toUpperCase(), column.tableName.toUpperCase());
        }
        return false;
    }
    
    @Override
    public int hashCode() {
        return Objects.hashCode(name.toUpperCase(), tableName.toUpperCase()); 
    } 
}

@@ -875,292 +875,467 @@
 ort 
-com.google.common.base.Objects;%0Aimport lombok.Getter;%0Aimport lombok.RequiredArgsConstructor;%0Aimport lombok.ToString;%0A%0A/**%0A * Column.%0A */%0A@RequiredArgsConstructor%0A@Getter%0A@ToString%0Apublic final class Column %7B%0A    %0A    private final String name;%0A    %0A    private final String tableName;
+lombok.Getter;%0Aimport lombok.ToString;%0A%0Aimport java.util.Objects;%0A%0A/**%0A * Column.%0A */%0A@Getter%0A@ToString%0Apublic final class Column %7B%0A    %0A    private final String name;%0A    %0A    private final String tableName;%0A    %0A    private final int hashCode;%0A    %0A    public Column(final String name, final String tableName) %7B%0A        this.name = name;%0A        this.tableName = tableName;%0A        hashCode = Objects.hash(name.toUpperCase(), tableName.toUpperCase());%0A    %7D
 %0A   
@@ -1498,42 +1498,70 @@
 urn 
-Objects.equal(name.toUpper
+(name == column.name %7C%7C null != name && name.equalsIgnore
 Case(
-), 
 colu
@@ -1571,66 +1571,96 @@
 name
-.toUpperCase()) && Objects.equal(tableName.toUpper
+)) && (tableName == column.tableName %7C%7C null != tableName && tableName.equalsIgnore
 Case(
-), 
 colu
@@ -1667,37 +1667,24 @@
 mn.tableName
-.toUpperCase(
 ));%0A        
@@ -1779,71 +1779,17 @@
 urn 
-Objects.hashCode(name.toUpperCase(), tableName.toUpperCase()); 
+hashCode;
 %0A   

Refactor Column (#11760)