Thank you for explaining that.
Another alternative solution would be to include, say, hibernate.cfg.xml.example
or something similarly named within xwiki-tomcat9-common
? That would avoid the need for another package whilst providing at least easier access to a file that could be used?
Anyway, at least I better understand the situation now, so thanks.