Why do I need to configure the SQL dialect of a data source? argues that one must define the hibernate.dialect
.
But, if hiberate.dialect
is defined within persistence.xml
, I have to decide at build time, which database is to be used. What can be done to defer the decision until deployment time.
The goal is to provide a war file without knowing the database in advance.