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

com.codingapi.springboot.framework.domain.event.DomainChangeEvent Maven / Gradle / Ivy

There is a newer version: 3.2.6
Show newest version
package com.codingapi.springboot.framework.domain.event;

import lombok.Getter;
import lombok.ToString;

/**
 * 实体字段变更事件
 */
@Getter
@ToString(callSuper = true)
public class DomainChangeEvent extends DomainEvent {

    /**
     * 字段名称
     */
    private final String fieldName;
    /**
     * 旧的值
     */
    private final Object oldValue;
    /**
     * 新的值
     */
    private final Object newValue;

    public DomainChangeEvent(Object entity, String fieldName, Object oldValue, Object newValue) {
        super(entity);
        this.fieldName = fieldName;
        this.oldValue = oldValue;
        this.newValue = newValue;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy