
org.apache.ibatis.metadata.Column Maven / Gradle / Ivy
Go to download
The MyBatis SQL mapper framework makes it easier to use a relational database with object-oriented
applications. MyBatis couples objects with stored procedures or SQL statements using a XML descriptor or
annotations. Simplicity is the biggest advantage of the MyBatis data mapper over object relational mapping
tools.
package org.apache.ibatis.metadata;
public class Column {
private String name;
private int type;
public Column(String name, int type) {
this.name = name;
this.type = type;
}
public String getName() {
return name;
}
public int getType() {
return type;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final Column column = (Column) o;
if (type != column.type) return false;
if (name != null ? !name.equals(column.name) : column.name != null) return false;
return true;
}
public int hashCode() {
int result;
result = (name != null ? name.hashCode() : 0);
result = 29 * result + type;
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy