package com.bcxin.tenant.domain;

import com.bcxin.Infrastructures.DataPersistentInterceptor;
import com.bcxin.tenant.domain.entities.ContractEntity;

import java.io.Serializable;

public class TenantDataPersistentInterceptorImpl implements DataPersistentInterceptor {
    @Override
    public void before(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames) {
        if(entity instanceof ContractEntity) {
            ContractEntity contract = (ContractEntity) entity;
        }
    }
}
