@Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (o instanceof Supertype) {
            return ((Supertype) o).type.equals(type);
        } else {
            return false;
        }
    }
{@code Supertype} defines a tuple of a {@link Type} and an optional {@link EntityType} instance used for
supertype references in {@link EntityType} instances

@author tiwe
querydsl-codegen/src/main/java/com/querydsl/codegen/Supertype.java