| Previously I could execute StoredProcedures using this: ``` StoredProcedureQuery sp = em.createNamedStoredProcedureQuery("otherdb.dbo.mySP") //defining and setting parameters List<?> result = sp.getResultList(); ``` After upgrading to Hibernate 5.3.1.Final the Database driver throws the error: "The database name component of the object qualifier must be the name of the current database." I found a workaround by using ``` Session session = ((Session) em.unwrap(Session.class)); session.doWork(work); ``` and inside `work.execute(Connection connection)` method before doing the same as previously calling `connection.setCatalog("otherdb");` |