Hibernate中的查詢語(yǔ)句如下
From User u where u.name=:username and u.yearold=:yearold
正確的參數(shù)注入方法有()
A.query.setParameter(“username”,”bluedavy”);
B.query.setParameter(“yearold”,25);
C.query.setParameter(0,”bluedavy”);
D.query.setParameter(1,25);