帮忙看看这ibatis配置一对多哪里错了 本帖最后由 cmk_ke 于 2010-01-14 11:22:03 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 就这个呀 放test里面了for (Iterator <Product> iterator = list.iterator(); iterator.hasNext();) { Product product = (Product) iterator.next(); System.out.println(product.getCategory().getCategoryName()); 怎么执行读取Product.xml 里面的id:getCategoryById/getAllProduct 哦 我用了spring是这样调用的public class ProductDaoImpl extends SqlMapClientDaoSupport implements IProductDao { public List<Product> getAllProduct() { List<Product> listProduct = getSqlMapClientTemplate().queryForList( "getAllProduct"); return listProduct; }} 系统没报错,只是调用System.out.println(product.getCategory().getCategoryName());输出的是null SSH 中的思考 抓取网页乱码问题 hibernate 在数据库取出一个对象时的怪现象 web程序中如何实现排他 WebService实现Java与_Net互联 急!求IE打开.tif文件的代码 如何在axis的webservices上实现filter的功能 jsp用了bean后显示乱码,在线等解决!!!!!!!!!!! jasperReport地中文问题! 分就给一个人(忘记了命令........) jmagick的使用! 问一个sql语句,谢谢大家~~
for (Iterator <Product> iterator = list.iterator(); iterator.hasNext();) {
Product product = (Product) iterator.next();
System.out.println(product.getCategory().getCategoryName());
IProductDao {
public List<Product> getAllProduct() {
List<Product> listProduct = getSqlMapClientTemplate().queryForList(
"getAllProduct");
return listProduct;
}}
输出的是null