ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zsolt" <zkoppanyl...@intland.com>
Subject include and <selectKey /> problem
Date Mon, 31 Oct 2005 17:38:43 GMT
Hi,

if I use the block below "<selectKey" statement is executed before INSERT.

Any ideas? I use ibatis ibatis-2.1.5.582

	<insert id="createSccCommit" parameterClass="sccCommitDto">
		<include refid="createSccCommitStatement" />

		<selectKey resultClass="java.lang.Integer" keyProperty="id"
>
			SELECT LAST_INSERT_ID()
		</selectKey>
	</insert>

Zsolt




Mime
View raw message