1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common_test_tester.support;
17
18 import org.springframework.transaction.annotation.Transactional;
19
20 @Transactional
21 public class MyBusinessClassImpl implements MyBusinessClass{
22 private MyDao myDao;
23 private OtherDao otherDao;
24
25 public int doBusinessThing(){
26 myDao.createValue(new Value("lalala"));
27 otherDao.foo();
28 if(myDao.findValueFromValue("Value Number One")!=null){
29 return 1;
30 }
31 return 0;
32 }
33
34
35
36
37 public MyDao getMyDao() {
38 return myDao;
39 }
40
41
42
43 public void setMyDao(MyDao myDao) {
44 this.myDao = myDao;
45 }
46
47
48
49 public OtherDao getOtherDao() {
50 return otherDao;
51 }
52
53
54
55 public void setOtherDao(OtherDao otherDao) {
56 this.otherDao = otherDao;
57 }
58 }