package com.ecep.contract.cloud;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.repository.config.BootstrapMode;

@Configuration
@EnableJpaRepositories(basePackages = {"com.ecep.contract.cloud"}, bootstrapMode = BootstrapMode.LAZY)
public class CloudRepositoriesConfig {
//    @Bean
//    @Role(BeanDefinition.ROLE_INFRASTRUCTURE)
//    public BeanDefinition cloudInfoRepositoryDefinition() {
//        BeanDefinition definition = new org.springframework.beans.factory.support.GenericBeanDefinition();
//        definition.setBeanClassName("com.ecep.contract.manager.cloud.CloudInfoRepository");
//        definition.setLazyInit(true);
//        return definition;
//    }
//
//    @Bean
//    @Role(BeanDefinition.ROLE_INFRASTRUCTURE)
//    public BeanDefinition cloudRkRepositoryDefinition() {
//        BeanDefinition definition = new org.springframework.beans.factory.support.GenericBeanDefinition();
//        definition.setBeanClassName("com.ecep.contract.manager.cloud.u8.CloudRkRepository");
//        definition.setLazyInit(true);
//        return definition;
//    }
//
//    @Bean
//    @Role(BeanDefinition.ROLE_INFRASTRUCTURE)
//    public BeanDefinition cloudTycRepositoryDefinition() {
//        BeanDefinition definition = new org.springframework.beans.factory.support.GenericBeanDefinition();
//        definition.setBeanClassName("com.ecep.contract.manager.cloud.u8.CloudTycRepository");
//        definition.setLazyInit(true);
//        return definition;
//    }
//
//    @Bean
//    @Role(BeanDefinition.ROLE_INFRASTRUCTURE)
//    public BeanDefinition cloudYuRepositoryDefinition() {
//        BeanDefinition definition = new org.springframework.beans.factory.support.GenericBeanDefinition();
//        definition.setBeanClassName("com.ecep.contract.manager.cloud.u8.CloudYuRepository");
//        definition.setLazyInit(true);
//        return definition;
//    }
}
