Scoffolding friom java beans. Scaffolding adds a hash function to the beans (i.e., hashes the primary key). Looks like scaffolding is expecting primary key to be int.
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + objId;
return result;
}
In large applicaitons, I need to use primary keys of type long.
Is this a limitation or am I doing something wrong?