Rev 1519 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1519 | Rev 1830 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | AbstractDao.getCurrentSession().beginTransaction(); |
40 | AbstractDao.getCurrentSession().beginTransaction(); |
41 | CourseUnit cu = DaoFactory.getCourseUnitDaoImpl().loadBySigesCodeUniqueMostRecent(sigesCode,sigesCourseCode,null); |
41 | CourseUnit cu = DaoFactory.getCourseUnitDaoImpl().loadBySigesCodeUniqueMostRecent(sigesCode,sigesCourseCode,null); |
42 | if(cu != null) |
42 | if(cu != null) |
43 | { |
43 | { |
44 | json.put("response","ok"); |
44 | json.put("response","ok"); |
45 | json.put("courseUnitName",cu.getName()); |
45 | json.put("name",cu.getName()); |
46 | } |
46 | } |
47 | else |
47 | else |
48 | { |
48 | { |
49 | json.put("response","notfound"); |
49 | json.put("response","notfound"); |
50 | } |
50 | } |