私はHQLクエリを使用しています.plsは以下のコードを参照してください。
エンティティ クラス:
@Entity
@Table(name = "COUNTRY")
public class Country implements Serializable{
private long countryCode;
private String countryName;
ダオ:
public List<Country> getCountryList(){
List<Country> resultList = null;
System.out.println("in dao");
Query query = getSession().createQuery(" from country ctry ");
resultList = query.list();
return resultList;
}
アプリ context.xml:
<beans:property name="annotatedClasses">
<beans:list>
<beans:value>com.test.in.ergy.entity.Country</beans:value>
</beans:list>
</beans:property>
何が問題なのですか