|
@ -4,12 +4,14 @@ import java.sql.Connection;
|
4
|
4
|
import java.sql.SQLException;
|
5
|
5
|
import java.util.List;
|
6
|
6
|
|
|
7
|
import org.jfw.apt.annotation.Nullable;
|
7
|
8
|
import org.jfw.apt.orm.annotation.dao.DAO;
|
8
|
9
|
import org.jfw.apt.orm.annotation.dao.method.From;
|
9
|
10
|
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
|
10
|
11
|
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
|
11
|
12
|
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
|
12
|
13
|
import org.jfw.apt.orm.annotation.dao.method.operator.SelectList;
|
|
14
|
import org.jfw.apt.orm.annotation.dao.method.operator.SelectOne;
|
13
|
15
|
|
14
|
16
|
import com.ekexiu.portal.po.Watch;
|
15
|
17
|
|
|
@ -30,9 +32,9 @@ public abstract class WatchDao {
|
30
|
32
|
@From(Watch.class)
|
31
|
33
|
public abstract int deleteWatch(Connection con, String watchObject) throws SQLException;
|
32
|
34
|
|
33
|
|
// @Nullable
|
34
|
|
// @SelectOne
|
35
|
|
// public abstract Watch queryOne(Connection con, String professorId, String watchObject) throws SQLException;
|
|
35
|
@Nullable
|
|
36
|
@SelectOne
|
|
37
|
public abstract Watch queryOne(Connection con, String professorId, String watchObject) throws SQLException;
|
36
|
38
|
|
37
|
39
|
@SelectList
|
38
|
40
|
@OrderBy(" ORDER BY CREATE_TIME DESC ")
|