Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-782

Non-mapped associations in discriminator sub-maps do not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0 Beta 10
    • 3.0.1 GA
    • Core
    • None
    • Any

    Description

      When using the association tag without a select to create a component object in a map referenced in a discriminator, the object does not get instantiated. The same association does work when included in a regular resultMap. After debugging, it appears the Configuration.newResultSetHandler method is creating a FastResultSetHandler rather than a NestedResultSetHandler based upon the mappedResultSet.hasNestedResultMaps flag. This flag is set to true when the association is in a regular resultMap, but false when the association is in a discriminator sub-map.

      Attachments

        Activity

          People

            cbegin Clinton Begin
            jmanning Jackie Manning
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: