第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

登陸進(jìn)去提示500錯(cuò)誤

http://img1.sycdn.imooc.com//58f51b43000157c618060740.jpg

HQL 代碼敲完 ?然后執(zhí)行查詢(xún)的方法

package?com.muke.dao.Impl;

import?java.util.List;

import?org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import?com.muke.dao.sshDao;
import?com.muke.domain.User;

public?class?sshDaoImpl?extends?HibernateDaoSupport?implements?sshDao?{
????
	@Override
	public?boolean?verify(User?user)?{
		String?hql="from?user?where?username=???and?pwd=???";
		?List<User>?list=this.getHibernateTemplate().find(hql,?user.getUsername(),user.getPwd());
		?if(list.size()>0){
			?return?list.size()>0;
		?}else{
			?return?false;
		?}
		?
	}

}


正在回答

2 回答

我的也是500錯(cuò)誤,org.springframework.orm.hibernate3.HibernateQueryException: Expected positional parameter count: 2, actual parameters: [com.employee.entity.Employee@6350ed68] [from Department where username = ? and password = ?]; nested exception is org.hibernate.QueryException: Expected positional parameter count: 2, actual parameters: [com.employee.entity.Employee@6350ed68] [from Department where username = ? and password = ?],這是什么原因?

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_知了_12

已解決
2017-06-21 回復(fù) 有任何疑惑可以回復(fù)我~

已經(jīng)決解了原來(lái) ?HQL 語(yǔ)句哪里的from 后面的不是表明 而是實(shí)體類(lèi)類(lèi)名

2 回復(fù) 有任何疑惑可以回復(fù)我~
#1

熱愛(ài)學(xué)習(xí)的壞孩子

多謝多謝。我也是找錯(cuò)找不到,看了你的就弄成功了!
2018-03-29 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

登陸進(jìn)去提示500錯(cuò)誤

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)