All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.logging.mdc.customobjects.MdcChangeset Maven / Gradle / Ivy

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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy