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

org.example.service.springdata.ContactRepository Maven / Gradle / Ivy

The newest version!
package org.example.service.springdata;

import org.example.jpadomain.Company;
import org.example.jpadomain.Contact;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;

import java.util.List;

public interface ContactRepository extends JpaRepository,
        QueryDslPredicateExecutor {

    public Page findByCompanyAndNameLikeIgnoreCase(Company company,
                                                            String filter, Pageable pageable);

    public Long countByCompanyAndNameLikeIgnoreCase(Company company,
                                                    String string);

    public List findByCompanyAndNameLikeIgnoreCase(Company company,
                                                            String string);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy