Remove equals/hashCode implementation from ConnectionV[12]. Identity
equals/hashCode should be good enough. Renamed JPA optimistic locking
version column from `version` to `jpaVersion`.
Generate correct query summary result type. Reduced duplication.