ORM provides a way ("strategy selectors", see [here|https://github.com/hibernate/hibernate-orm/blob/master/documentation/src/main/asciidoc/topical/registries/ServiceRegistries.adoc]) for resolving short names (e.g. "infinispan") to service implementations (e.g. {{InfinspanDatastoreProvider}}). Using this would allow us to get rid of our custom solution; In particular we could avoid that {{AvailableDatastores}} enum in core which "knows" all datatstores and instead have each backend module contribute its own short name.
To me it's in the nice-to-have category, not a high prio atm. This may change if there are 3rd-party dialects which should be configurable via short naming.
|