Cache mode properties on EntityManager.setProperty()

EntityManager.setProperty("jakarta.persistence.cache.retrieveMode", …​) and "jakarta.persistence.cache.storeMode" previously accepted the enum constants as well as their String names. The new Jakarta Persistence 3.2 setters setCacheRetrieveMode() and setCacheStoreMode() are now used to apply these properties, and a String value is passed to the setter unconverted, which fails with an IllegalArgumentException (argument type mismatch); previously the call succeeded. Pass the CacheRetrieveMode/CacheStoreMode enum constant, or call the setters directly. String values given as find(), refresh() or query hints continue to work.