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

com.yannbriancon.interceptor.HibernateQueryInterceptorProperties Maven / Gradle / Ivy

Go to download

Library giving tools to detect N+1 queries and count the queries generated with Spring and Hibernate

There is a newer version: 2.0.0
Show newest version
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