Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Different schema in entities for Prod  RSS feed

Nitin Gaur
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My project is going live soon on Prod, it is phase-2 development of an existing app running in prod. Since it is major revamp so DB guys (Oracle) have created a production parallel schema so that they start populating the data one week before and on Prod deployment date, app is deployed pointing to new schema and everybody go happy.
If I give names, lets say current schema is "Phase1" and new schema is "Phase2"

Now the problem: All of my entity classes have schema "Phase1" specified and when this moves to Prod, it will fail because new schema is "Phase2".
And, I must specify the schema in entities because app uses different aliased login credential

Want to know how to handle this problem for such enterprise level roll-out?

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