[
https://issues.apache.org/jira/browse/IBATIS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473714
]
Brandon Goodin commented on IBATIS-142:
---------------------------------------
Is there any reason why we can't expand our existing selectKey syntax and add
an attribute called generatedKeys="true/false/yes/no"? That way we retain the
mapping ability and ditch the body. <selectKey resultClass="int"
keyProperty="id" generatedKeys="true"/>. I know the executeUpdate/execute has
the potential to return multiple results. But, is that a scenario that will
happen when using iBATIS?
> JDBC 3 Generated Keys Support
> -----------------------------
>
> Key: IBATIS-142
> URL: https://issues.apache.org/jira/browse/IBATIS-142
> Project: iBatis for Java
> Issue Type: Improvement
> Components: SQL Maps
> Reporter: Brandon Goodin
> Priority: Minor
>
> public int executeUpdate(String sql,int autoGeneratedKeys)
> public boolean execute(String sql,int autoGeneratedKeys)
> public ResultSet getGeneratedKeys()
> We should provide support for jdbc auto generated keys retrieval. This is
> only available in Java 1.4. So, we would have to throw an
> UnsupportedFeatureException if 1.3 or earlier was being used.
> Brandon
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.