The following warning message is being logged when starting an application (with a basic Spring Boot 3 application, but I don’t think it matters):
HHH90000021: Encountered deprecated setting [javax.persistence.sharedCache.mode], use [jakarta.persistence.sharedCache.mode] instead
But this setting has never been explicitly set anywahere anywhere.
I’ve tracked down the place where this warning is logged. It’s in MetadataBuilderImpl, line 626: [https://github.com/hibernate/hibernate-orm/blob/main/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java#L617-L636|https://github.com/hibernate/hibernate-orm/blob/main/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java#L617-L636|smart-link]
Analyzing the code, it gets a setting, specifies a default value in case the setting has not been set, which is SharedCacheMode.UNSPECIFIED, and then, when getting this default value, logs a warning saying that this this value is deprecated. |
|