Backend Development
Spring Boot
Subjective
Oct 03, 2025
Explain Spring Boot JPA Repository with example.
Detailed Explanation
JPA Repository provides CRUD operations:\n\n@Entity\npublic class User {\n @Id\n @GeneratedValue\n private Long id;\n private String name;\n}\n\npublic interface UserRepository extends JpaRepository {\n List findByName(String name);\n \n @Query("SELECT u FROM User u WHERE u.email = ?1")\n User findByEmail(String email);\n}
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts