存储过程:
CREATE OR REPLACE
procedure P_TEST(v_cursor OUT sys_refcursor)
as
begin
OPEN v_cursor
FOR select POST_ID, FORUM_ID, USER_ID, POST_TITLE, POST_CONTENT, POST_TIME, TOTAL_COMMENT_COUNT from POST;
end;
resultMap:
<resultMap id="BaseResultMap" type="com.bbs.pojo.Post" >
<id column="POST_ID" property="postId" jdbcType="DECIMAL" />
<result column="FORUM_ID" property="forumId" jdbcType="DECIMAL" />
<result column="USER_ID" property="userId" jdbcType="DECIMAL" />
<result column="POST_TITLE" property="postTitle" jdbcType="VARCHAR" />
<result column="POST_CONTENT" property="postContent" jdbcType="VARCHAR"