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

Create bson-kotlin

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      The bson-kotlin dependency is optional but if present is available via the default codec registry.

      Uses reflection and the codec registry to support Kotlin Dataclasses
      Some Pojo annotations are not supported (BsonDiscriminator, BsonExtraElements, BsonConstructor).

      Users should generally prefer the faster bson-kotlinx library

      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      For the new kotlin wrapper of the Java driver

      Show
      1. What would you like to communicate to the user about this feature? The bson-kotlin dependency is optional but if present is available via the default codec registry. Uses reflection and the codec registry to support Kotlin Dataclasses Some Pojo annotations are not supported (BsonDiscriminator, BsonExtraElements, BsonConstructor). Users should generally prefer the faster bson-kotlinx library 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to? For the new kotlin wrapper of the Java driver

      Support Kotlin types / Data Classes both via Codecs

      New code - follow the Java record codec approach rather than port the modified pojo codec.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: