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

top.openyuan.jpa.JpaRepositoriesExtRegistrar Maven / Gradle / Ivy

package top.openyuan.jpa;

import org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension;
import org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport;
import org.springframework.data.repository.config.RepositoryConfigurationExtension;

import java.lang.annotation.Annotation;

/**
 * {@link EnableJpaPlus} 启用的注册器.
 *
 * @author lzy on 2021/09/22
 * @since v1.0.0
 */
public class JpaRepositoriesExtRegistrar extends RepositoryBeanDefinitionRegistrarSupport {

    @Override
    protected Class getAnnotation() {
        return EnableJpaPlus.class;
    }

    @Override
    protected RepositoryConfigurationExtension getExtension() {
        return new JpaRepositoryConfigExtension();
    }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy