I have a WebService that was created by a developer that is no longer with us, that uses the following syntax @Table(name = "Tax", catalog = "dbProduction", schema = "")
the database has been renamed and the webservice no longer works, I manually renamed the @Table
annotations to @Table(name = "Tax", catalog = "dbProduction2013", schema = "")
I would like to know if there is a simple way to make this a parameter that automatically finds the database name given a connection? Is there a way to make the whole process automatic? I am using NetBeans 7.2.1