Spring - Part-6 - 24-June-2024
Spring - Part-6 - 24-June-2024
-----------------
Spring Data JPA Module (Java Persistence API)
----------------------
Spring JDBC
-----------
interface StudentDAO
{
CRUD operations
}
public class StudentDAOImpl implements StudentDAO
{
//implement interface methods
//overridden CRUD operations
}
Spring ORM
----------
interface EmployeeDAO
{
CRUD operations
}
public class EmployeDAOImpl implements EmployeeDAO
{
//implement interface methods
//overridden CRUD operations
}
Ex:
@Repository
interface EmployeeRepository extends JpaRepository<Employee,Integer>{}
@Repository
interface StudentRepository extends JpaRespository<Student,Integer>{}
REST APIs are used to develop distributed applications which are used to interact
one application with another application
@RestController annotation is used to mark the class as Rest Controller class