Interface ProductDtoRepository

All Superinterfaces:
GenericRepository<Product,Long>

public interface ProductDtoRepository extends GenericRepository<Product,Long>
  • Method Details

    • findByNameWithQuery

      @Query("select p.id, p.name, p.price, p.loooooooooooooooooooooooooooooooooooooooooooooooooooooooong_name AS long_name, p.date_created, p.last_updated from product p where p.name = :name order by p.name") Optional<ProductDto> findByNameWithQuery(String name)
    • findByNameLikeOrderByName

      List<ProductDto> findByNameLikeOrderByName(String name)