?? votetopicdaoimpl.java
字號:
package com.jeecms.auxiliary.dao.impl;
import org.springframework.stereotype.Repository;
import com.jeecms.auxiliary.entity.VoteTopic;
import com.jeecms.auxiliary.dao.VoteTopicDao;
import com.jeecms.core.JeeCoreDaoImpl;
@Repository
public class VoteTopicDaoImpl extends JeeCoreDaoImpl<VoteTopic> implements
VoteTopicDao {
public VoteTopic getCurrentTopic(Long webId) {
String hql = "from VoteTopic v where v.website.id=? and v.current=true and v.disabled=false order by v.id desc";
return (VoteTopic) findUnique(hql, webId);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -