0
我正在使用休眠模板從表course
中檢索數據,其中有兩列 courseId
和courseName
。我想使用hibernate模板從course
中選擇courseName
。如何在休眠狀態下編寫查詢以選擇列
當我使用:
List<String> courseNames=hibernateTemplate.find("courseName from domain.Course");
我得到以下異常:
java.lang.IllegalArgumentException: node to traverse cannot be null!
太感謝你了。 – elle 2011-03-30 10:13:56