Bare minimum JpaRepository

Report a typo

We have the following entity:

@Entity
public class Product {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String name;
    private double price;

    // toString, all args constructor, no arg constructor, getter and setters omitted

}

Complete the following code:

@Repository
public interface ProductRepository extends {1}<{2}, {3}> {
    
}
Match the items from left and right columns
{1}
{2}
{3}
Long
Product
JpaRepository
___

Create a free account to access the full topic