Closed scottfromsf closed 12 years ago
It shouldn't be required. MigrationTask.getName() is used for logging purposes and is not related to the execution. For SQL and XML-based patches, the name is set as the name of the file that contains the patch. For Java-based patches it is required. MigrationTaskSupport would provided a default value for getName(), maybe the full qualified name of the Java class.
And the constraint in ClassMigrationTaskSource should be removed.
The
MigrationTask
interface defines agetName
method.MigrationTaskSupport
provides a default implementation that includes a correspondingsetName
method. The problem is that there's nothing to indicate toMigrationTaskSupport
subclasses thatgetName
should return something. IfgetName
returnsnull
then the patch is ignored with a message in the log.getName
utilized for anything useful? If not, why is it required inClassMigrationTaskSource
?MigrationTaskSupport
subclasses to implementgetName
?