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

com.alon.spring.crud.repository.specification.predicate.PredicateBuilder Maven / Gradle / Ivy

Go to download

Projeto base para criação de serviços e recusos de CRUD com Spring Data JPA.

There is a newer version: 3.0.0
Show newest version
package com.alon.spring.crud.repository.specification.predicate;

import com.alon.spring.crud.repository.specification.converter.ConverterResolver;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;

public interface PredicateBuilder {
    
    public Predicate build(CriteriaBuilder criteriaBuilder, Path path, String value);
    
    default public Comparable convertValue(Path path, String value) {
        return ConverterResolver.resolve(path.getJavaType())
                                .convert(value);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy