?? createflightdao.java
字號(hào):
package bit.jeffy.dao;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import bit.jeffy.orm.Flight;
public class CreateFlightDao extends HibernateDaoSupport{
/*private String hql = "from User u where u.account_no=? and u.password=?";*/
private static final Log log = LogFactory.getLog(LogUserDao.class);
protected void initDao() {
}
public boolean saveFlight(Flight f){
try{
this.getHibernateTemplate().save(f);
}catch(Exception e){
log.error(e.getMessage());
return false;
}
return true;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -