public boolean compareTo(Object obj) {
        // TODO Use globalNum here too ?
        Person p = (Person) obj;
        return bestFriend == p.bestFriend && firstName.equals(p.firstName)
                && lastName.equals(p.lastName)
                && emailAddress.equals(p.emailAddress)
                && personNum == p.personNum;
    }
Used for the querying of static fields.
querydsl-jdo/src/test/java/com/querydsl/jdo/models/company/Person.java