You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "omkaram sangem (JIRA)" <ib...@incubator.apache.org> on 2009/01/15 23:51:59 UTC

[jira] Commented: (IBATIS-115) automapping and/or ignoreMissingColumns

    [ https://issues.apache.org/jira/browse/IBATIS-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664310#action_12664310 ] 

omkaram sangem commented on IBATIS-115:
---------------------------------------

It looks like this is not fixed in the Release 2.3.4. Even though the release was made after the patch date  2008-06-02 (The patch attachment date).
When I looked at the SVN source the later versions of the patched files are missing the fix.
Is there a way to get a Jar file with the fixes. 

Thanks a lot for the help in advance.


> automapping and/or ignoreMissingColumns
> ---------------------------------------
>
>                 Key: IBATIS-115
>                 URL: https://issues.apache.org/jira/browse/IBATIS-115
>             Project: iBatis for Java
>          Issue Type: New Feature
>          Components: SQL Maps
>    Affects Versions: 2.0.9b
>            Reporter: ow
>         Attachments: ignore-missing-cols.zip
>
>
> This was requested about a year ago. Somewhat similar to what Ruby-on-Rails does.
> http://sourceforge.net/forum/forum.php?thread_id=1110825&forum_id=206694
> By: Clinton Begin - cbeginProject Admin
> RE: Same name property/column automapping  
> 2004-07-15 16:29
> This has been discussed before, and so has the inverse. That is, not all columns in the result map need be present in the db result set. The biggest argument against this is performance, as it requires accessing the DB metadata, possibly EVERY time a query is run. However, I don't have too much problem with it if it is optional. I would sooner see a syntax something like: 
>  
> <!-- FORCES AUTOMAP OF ALL REMAINING COLUMNS --> 
>  
> <resultMap id=”get-product-result” class=”com.ibatis.example.Product” autoMapRemaining="true"> 
> <result property=”id” 
> column=”ID_THAT_NEEDS_TO_BE_REMAPPED”/> 
> <result property=”category” column=”categoryId” select=”getCategory”/> 
> </resultMap> 
>  
> <!-- RELAXES REQUIREMENT THAT ALL COLUMNS MUST BE PRESENT --> 
>  
> <resultMap id=”get-product-result” class=”com.ibatis.example.Product”> 
> <result property=”description” column=”DESC” optional="true" /> 
> ... 
> </resultMap> 
>  
> <!-- OR --> 
>  
> <resultMap id=”get-product-result” class=”com.ibatis.example.Product” ignoreMissingColumns="true"> 
> ... 
> </resultMap> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.