package com.db.demo.dao;
import jakarta.persistence.EntityManager;
import jakarta.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.db.demo.entity.StudentCourseInfo;
@Repository
@Transactional
public class StudentCourseDao {
@Autowired
EntityManager em;
public StudentCourseInfo saveStudent(StudentCourseInfo bean) {
em.persist(bean);
return bean;
}
}