pksiv wrote:
I would verify that that the data in your database contains 1600 unique rows based on the equals() method of your Thing object.
Because these are being placed in a Set, duplicates aren't allowed and if your equals() method identifies two rows as equal, only one of them will end up in the set.
no luck. I ran: "select distinct name, user_number from Thing" and got the same record count - 1600.
Here's my equals...
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( !(other instanceof Thing) ) return false;
Thing castOther = (Thing) other;
return new EqualsBuilder()
.append(this.getName(), castOther.getName())
.append(this.getUserNumber(), castOther.getUserNumber())
.isEquals();
}