ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Marshall" <ch...@campsbayterrace.com>
Subject Re: iBATIS insert does not execute
Date Sat, 19 Apr 2008 08:16:59 GMT
Hopefully the final question on this issue, which may be because of my
It appears that iBATIS .NET insert statement returns the generated key as in:

<insert id="InsertOrganization" parameterClass="Organization" resultClass="int">
	<selectKey property="Id" type="post" resultClass="int">
	INSERT INTO Organizations
		(Org_Code, Org_Name)
		(#Code#, #Name#)

but that this is not supported in the Java version.
Is this correct, and if so, is there any intention to support it in future?
Regards Chris

On 18/04/2008, Brandon Goodin <brandon.goodin@gmail.com> wrote:
> What is your overall plan for deployment. Do you have sql scripts that get
> run against the target database to build the tables and such? How will you
> configure the connection url? What i've done in the past is to simply have a
> property file that contains the select key sql in it. I pass this property
> file in when my sqlmap is loaded and use the ${selectQuery} notation in my
> sqlmap.
> Brandon

View raw message