This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//############### This is a generic filter to use with Spring data framework. | |
//############### It possibilities only one abstraction to any user filter in your system | |
public class Filter<T> implements Specification<T> { | |
private static final Logger LOGGER = LoggerFactory.getLogger(Filter.class); | |
private Class<?> searchableType; | |
private Object fields; | |
private CriteriaBuilder cb; | |
private Root<T> root; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PoolInformation | |
attr_reader :dataSource | |
def initialize(informations = {}) | |
@config = ConfigReader.new | |
define_attr informations | |
end | |
def label | |
@dataSource.upcase |