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

io.github.perplexhub.rsql.RSQLQueryDSLAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 6.0.23
Show newest version
package io.github.perplexhub.rsql;

import java.util.Map;

import jakarta.persistence.EntityManager;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Configuration
@ConditionalOnMissingClass("io.github.perplexhub.rsql.RSQLJPAAutoConfiguration")
@ConditionalOnClass(EntityManager.class)
public class RSQLQueryDSLAutoConfiguration {

	@Bean
	public RSQLCommonSupport rsqlCommonSupport(Map entityManagerMap) {
		log.info("RSQLQueryDSLAutoConfiguration.rsqlCommonSupport(entityManagerMap:{})", entityManagerMap.size());
		return new RSQLCommonSupport(entityManagerMap);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy