one to many : product has many quantites | get Data by quantity using product id

 public interface CreateQuantityRepo extends JpaRepository<CreateQuantity, Long> {


@Query("from CreateQuantity as d where d.createProduct.id=:createProductId")

public List<CreateQuantity> getByIdCreateQuantity(@Param("createProductId") long createProductId);

}


Comments