-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestAction.java
41 lines (31 loc) · 927 Bytes
/
TestAction.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.Ricardo.test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.Ricardo.Dao.StudentDao;
import com.Ricardo.model.Student;
public class TestAction {
public static void main(String[] args) throws Exception{
StudentDao sd= new StudentDao();
/*Student s = new Student();
//test for addStudents
s.setAge(35);
s.setId(200094039);
s.setName("yuchao");
s.setProfession("computer");
sd.addStudents(s);
*/
//test for query
/*List<Student> result = sd.query("li","com");
for( int i = 0 ; i < result.size(); i ++){
System.out.println(result.get(i).getId()+" "+result.get(i).getName());
}
*/
List<Map<String, Object>> params=new ArrayList<Map<String,Object>>();
Map<String, Object> map=new HashMap<String, Object>();
map.put("name", "name");
map.put("rela", "=");
map.put("value", "'liurui'");
}
}