@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EmbeddedType other = (EmbeddedType) obj;
        if (this.schema != other.schema && (this.schema == null || !this.schema.equals(other.schema))) {
            return false;
        }
        return true;
    }