String hql ="select new list(c.name,c.price,c.category,c.seller.name)"
+ " from Commodity c where c.category like '%書%' and c.price>=10 order by "
+ "c.category asc,c.price desc";
+ " from Commodity c where c.category like '%書%' and c.price>=10 order by "
+ "c.category asc,c.price desc";
2017-03-29
已采納回答 / 180cm
hql是面向?qū)ο蟮亩鴖ql是面向數(shù)據(jù)庫(kù)的在hibernate框架中hql會(huì)轉(zhuǎn)化成sql操作數(shù)據(jù)庫(kù)-------------個(gè)人理解
2017-03-27
運(yùn)用自己的時(shí)間,覺得不需要你可以跳過去。去噴別人,你這么牛逼為什么還來(lái)看了?
2017-03-14