You are on page 1of 1

import org.springframework.data.jpa.repository.

JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.math.BigDecimal;
import java.util.List;

public interface ProductRepository extends JpaRepository<Product, Long> {

@Query(value = "SELECT * FROM products p WHERE p.price > :minPrice",


nativeQuery = true)
List<Product> findProductsAboveMinPrice(@Param("minPrice") BigDecimal
minPrice);
}
=================================

public static void m1(String.. args){


}

psvm(){
m1(); // this is agaist the java programming, why java is object oriented.
A.m1();
}

public static void m1(int... x){ // int[] arr;


//vrgs
}

// Object
A obj=new A();
obj.m1(82);
obj.m1(8772,827,827,828);
=================================
valueOf
parseInt
---

You might also like