I'd like to deploy my application on multiple servers. Those servers have different database-managers. (one is Oracle, the other is Postgres in this case).
These require different persistence unit configurations, because Hibernate needs the dialect defined for Oracle, but then the Postgres db won't work. Sadly, by not configuring the dialect in the persistence.xml
, Hibernate is unable to auto-detect the Oracle dialect.
Is there a way to define the persistence unit configuration for the environment?