package com.trade.admin.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.trade.common.annotation.I18nEntityScan;
import com.trade.common.config.mybatis.plugin.I18nSqlProcessInterceptor;

@Configuration
@I18nEntityScan({
        "com.trade.service.tradingplatform.domain","com.trade.service.enterprise.customer.domain"
})
public class DatabaseConfiguration {

    @Bean
    public I18nSqlProcessInterceptor i18nSqlProcessInterceptor() {
        return new I18nSqlProcessInterceptor();
    }
}
