Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JPA - Persistence.xml vs placeholder (properties files)  RSS feed

 
Sylvain Bouchard
Ranch Hand
Posts: 41
Java ME Objective C Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers !!

I'm starting a new projet with Hibernate/JPA, and I was wondering if we can use placeholders in the persistence.xml file ?
Not from the commande line, but really using an external properties file.
I didn't find any example or documentation on that particular topic.

I found one post that use Ant to do the trick, But, our environments are not setup up like that.
We use different properties files when moving from environment to new environement.

Thanks
Sylvain
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!