public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if ((o == null) || (o.getClass() != this.getClass())) {
            return false;
        }

        Person other = (Person) o;
        return personNum == other.personNum
                && (globalNum == other.globalNum || (globalNum != null && globalNum
                        .equals(other.globalNum)));
    }
Used for the querying of static fields.
querydsl-jdo/src/test/java/com/querydsl/jdo/models/company/Person.java