com.yannbriancon.interceptor.HibernateQueryInterceptorProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-hibernate-query-utils Show documentation
Show all versions of spring-hibernate-query-utils Show documentation
Library giving tools to detect N+1 queries and count the queries generated with Spring and
Hibernate
package com.yannbriancon.interceptor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.io.Serializable;
@ConfigurationProperties("hibernate.query.interceptor")
public class HibernateQueryInterceptorProperties implements Serializable {
enum ErrorLevel {
INFO,
WARN,
ERROR,
EXCEPTION
}
/**
* Error level for the N+1 query detection.
*/
private ErrorLevel errorLevel = ErrorLevel.ERROR;
public ErrorLevel getErrorLevel() {
return errorLevel;
}
public void setErrorLevel(String errorLevel) {
this.errorLevel = ErrorLevel.valueOf(errorLevel);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy