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

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

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

import java.util.Map;
import java.util.Properties;

import jakarta.persistence.EntityManager;

import org.springframework.util.StringUtils;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class RSQLSupport extends RSQLQueryDslSupport {

	public RSQLSupport(Map entityManagerMap) {
		super(entityManagerMap);
		log.info("RSQLSupport is initialized.");
	}

	protected String getVersion() {
		try {
			Properties prop = new Properties();
			prop.load(getClass().getResourceAsStream("/META-INF/maven/io.github.perplexhub/rsql-support/pom.properties"));
			String version = prop.getProperty("version");
			return StringUtils.hasText(version) ? "[" + version + "] " : "";
		} catch (Exception e) {
			return "";
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy