liquibase.logging.mdc.customobjects.MdcChangeset Maven / Gradle / Ivy
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());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy