We can use the Jpa Repository methods like save, delete, etc. Also, we can write our own methods without any implementations by Method Name Conventions. My question is,
Entity class
public class Movie {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String title;
private double rating;
private double watchTime;
private int releaseYear;
}
Repository class
public interface MovieRepository extends JpaRepository<Movie, Long> {
List<Movie> findByWatchTimeAndReleaseYear(double 2.30d, int 2020);**//Line i have doubt**
}
How the JVM will know the implementation of this method? because we don't implement this.
Can anyone please help me?
