Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-128

Support inheritance with Document mappings

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 M2
    • Fix Version/s: 1.0 M3
    • Component/s: Repository
    • Labels:
      None
    • Environment:
      windows 7, Java 6

      Description

      I would like Spring Data to support inheritance in order to persist domain classes of the same super type (interface or abstract class) to the same collection. Upon querying, I would expect spring data to materialize the correct concrete implementation.

      At a minimum, it would be nice to see the Document "type" stored along with the object. Even better might be to support discriminators via @DiscriminatorColumn/@DiscriminatorValue annotations

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Gierke
              Reporter:
              tim.dennison@gmail.com Timothy Dennison
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.25d
                0.25d