I had asked a question regarding this a while back but I want to ask a more specific question. With regards to deploying to multiple environments like dev, test, stage, etc, what is the best way to handle the differences in database connection info in the persistence.xml. I can't find anything that allows me to put anything in a properties file that the persistence.xml can read.
Is it just a matter of maintaining multiple persistence file and copying the right one in on a build/deploy?
Is it just a matter of maintaining multiple persistence file and copying the right one in on a build/deploy?