Closed sujithmn closed 2 years ago
devon java migrate does the migration job well. But found below 2 issues.
Compilation error from DbTestHelper.
the issues are due to the below lines of code:
private MigrationVersion migrationVersion; .... if (this.migrationVersion != null) { this.flyway.setTarget(this.migrationVersion); } ….. public void setMigrationVersion(String migrationVersion) { this.migrationVersion = MigrationVersion.fromVersion(migrationVersion); }
Nullpointer exception from repository.findByCriteria
addOrderBy(query, alias, criteria.getPageable().getSort());
Change the code as below fixes the issue
if (criteria.getPageable() == null) { criteria.setPageable(PageRequest.of(0, Integer.MAX_VALUE)); } else { addOrderBy(query, alias, criteria.getPageable().getSort()); }
It is done by @sujith-mn and PR is merged.
devon java migrate does the migration job well. But found below 2 issues.
Compilation error from DbTestHelper.
the issues are due to the below lines of code:
Nullpointer exception from repository.findByCriteria
addOrderBy(query, alias, criteria.getPageable().getSort());
Change the code as below fixes the issue