请问各位老师,forEach遍历Hibernate的List的问题 帮帮我,各位老师们,我使用的是JSTL1.2 tomcat6.0.13,在(tomcat5.5.20,JSTL1.1就没问题) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Property 'name' not found on type java.lang.String 你的name是什么类型的 看看是不是类型匹配的问题 JAVABEANpublic class Product implements Serializable { private Integer id; private String name; private String description; private double price; public String getDescription() { return description; }....................................hibernate的映射文件 <class name="com.shop.www.entity.Product" table="PRODUCT"> <id name="id" column="id" type="integer"> <generator class="increment"></generator> </id> <property name="name" column="NAME" type="string" length="32" not-null="true"></property> <property name="description" column="DESCRIPTION" length="64" type="string"></property> <property name="price" column="PRICE" type="double" not-null="true"></property> </class> 兄弟~解决了没啊 解决了告诉我啊~ [email protected]谢谢啊~~~~ struts2关于session问题 求改hql hql 语句不支持from后面直接跟子查询表 我怎么没有 jdom包 Hibernate2的问题 求::请问在java中怎么解析以下格式的xml文件? 总有一天要被tomcat折磨死了,现在已经精神崩溃了! CMP的简单问题 请问如何将一个package 导入一个工程(Jbuilder 中)? [!!!急!!!]请问在JB7中怎样配置ORACLE8i与WebLogic6.1集成? 在EJB出错? Ibatis中如何才能显示生成的SQL语句? 欢迎加入Android开发中来
你的name是什么类型的 看看是不是类型匹配的问题
private Integer id;
private String name;
private String description;
private double price; public String getDescription() {
return description;
}
....................................hibernate的映射文件
<class name="com.shop.www.entity.Product" table="PRODUCT">
<id name="id" column="id" type="integer">
<generator class="increment"></generator>
</id>
<property name="name" column="NAME" type="string" length="32" not-null="true"></property>
<property name="description" column="DESCRIPTION" length="64" type="string"></property>
<property name="price" column="PRICE" type="double" not-null="true"></property>
</class>
解决了告诉我啊~
[email protected]
谢谢啊~~~~