Rev 1929 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1929 | Rev 1930 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | .createAlias("course","c") |
24 | .createAlias("course","c") |
25 | .add(eq("importYear", importYear)) |
25 | .add(eq("importYear", importYear)) |
26 | .add(eq("c.code",code)).list(); |
26 | .add(eq("c.code",code)).list(); |
27 | return cYs; |
27 | return cYs; |
28 | } |
28 | } |
- | 29 | ||
29 | public CourseYear findCourseYearU(1.5.0/docs/api/java/lang/String.html">String code, 1.5.0/docs/api/java/lang/String.html">String importYear) |
30 | public CourseYear findCourseYearU(1.5.0/docs/api/java/lang/String.html">String code, 1.5.0/docs/api/java/lang/String.html">String importYear) |
30 | { |
31 | { |
31 | List<CourseYear> cYs = findCourseYear(code,importYear); |
32 | List<CourseYear> cYs = findCourseYear(code, importYear); |
32 | 33 | ||
33 | if (cYs.isEmpty()) |
34 | if (cYs.isEmpty()) |
34 | return null; |
35 | return null; |
35 | 36 | ||
36 | return cYs.get(0); |
37 | return cYs.get(0); |
37 | } |
38 | } |
38 | } |
39 | } |
39 | 40 |