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

InsertOneOptions and InsertManyOptions are final

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.10.2
    • Component/s: Query Operations
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: