Prüfer domains with class group generated by the classes of the invertible maximal ideals