<resultMap id="test" class="yourClass">
<result property="count" column="count"/>
<result property="age" column="age"/>
</resultMap><statement id="doyourself" resultMap="test">
select count(0) as count ,age from user group by age
</statement>
====================================================
随手写的,没验证是否正确,你试试吧:)
<result property="count" column="count"/>
<result property="age" column="age"/>
</resultMap><statement id="doyourself" resultMap="test">
select count(0) as count ,age from user group by age
</statement>
====================================================
随手写的,没验证是否正确,你试试吧:)
解决方案 »
- dbcp报了一个错: Error preloading the connection pool要郁闷死了
- jpa 建立数据字典
- js和jsp页面不能自动更新,必须重新部署项目(有时重新部署都不能更新),重起服务器才生成效,求解决方法,急急急。。。。。。
- 如何运行快速调试jsp
- 时间控件
- 在sql 里面进行逻辑运算问题,请兄弟们帮帮忙
- 如何从一个打包的ejb组件jar中提取相应的home,remote,ejb类名和ejb组件中的远程调用方法和参数呢?请求大家帮忙解决啊!在线等待。。。
- 高手请进,在线等待.
- jdbc从数据库里取数据 可以rs.getObject(1) 取第一列 rs.getObject(2) 取第二列 可以这样吗
- getHibernateTemplate的find方法有时候执行有时候不执行是怎么回事?
- Hibernate中entity的equals问题
- 监听线程(run方法)收到相应内容后,如何做能通知到jsp页?
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'count' in class 'com.haoxi.framework.sh.sample.entity.User'