| Good point. #save would always do the insert. The reason being that the signature of #save returns the id value, so we have to do the insert to get the id with IDENTITY. #merge and #persist do not have that requirement. So for those we do the smart thing based on FlushMode(Type). Anyway, "the truth will out" with a test case... |