public class TeacherSubjectsDAOImpl extends HibernateDaoSupport implements
TeacherSubjectsDAO {
@Override
public TeacherSubjects createTeacherSubjects(int subject, int teacher) {
TeacherSubjects teachSubj = new TeacherSubjects(subject, teacher);
return (TeacherSubjects) getHibernateTemplate().save(teachSubj);
}