liquibase.logging.mdc.customobjects.MdcChangeset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
package liquibase.logging.mdc.customobjects;
import liquibase.changelog.ChangeSet;
import liquibase.logging.mdc.CustomMdcObject;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class MdcChangeset implements CustomMdcObject {
private String changesetId;
private String changesetAuthor;
private String changesetFilepath;
public static MdcChangeset fromChangeset(ChangeSet changeSet) {
return new MdcChangeset(
changeSet.getId(),
changeSet.getAuthor(),
changeSet.getFilePath());
}
}