Hello,
I am trying to merely convert ChangeLog into an SQL file using the Java API. I tried something like:
I am trying to merely convert ChangeLog into an SQL file using the Java API. I tried something like:
- Database database = DatabaseFactory.getInstance()
- .findCorrectDatabaseImplementation(new OfflineConnection("offline:oracle"));
- Liquibase liquibase = new Liquibase("changeLog.xml", resourceAccessor, database);
- liquibase.update(new Contexts(), writer);
But I get on the very first line:
- liquibase.exception.UnexpectedLiquibaseException: java.lang.NoSuchMethodException: liquibase.database.OfflineConnection.getWrappedConnection()
- at liquibase.database.core.OracleDatabase.setConnection(OracleDatabase.java:62)
- at liquibase.database.DatabaseFactory.findCorrectDatabaseImplementation(DatabaseFactory.java:123)
What I did miss? Where could I find an example of code to do that?
Thanks for your help,
Gérald