Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3331

InsertOneOptions and InsertManyOptions are final

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 3.10.2
    • Fix Version/s: None
    • Component/s: Query Operations
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      These options class, unlike most/all of the others, are final.  This makes it awkward for me to provide a consistent experience in Morphia.  With the others, I can extend them and add things like WriteConcern and ReadPreference options to provide a single place for users to define various options.  With these being final, i have to jump through certain hoops and it results in an inconsistent API and implementations.  'final' should be removed from these types. I can work around it but it makes me sad.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              justin.lee Justin Lee
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: