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

Create Codec implementation for POJOs

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Codecs
    • Labels:
      None

      The 3.0.x branch now has pluggable support for BSON codecs (encoders/decoders), as well as a few concrete implementations for Map-like classes: DBObjectCodec, DocumentCodec, and BsonDocumentCodec.

      The goal for this issue is to create a ClassModelCodec (and associated ClassModelCodecProvider) that supports encoding and decoding any POJO (Plain Old Java Object).

      This codec should support the following field types:

      • String
      • int, Integer
      • long, Long
      • boolean, Boolean
      • double, Double
      • Date
      • POJO (for embedded documents)
      • Binary
      • java.util.List (of any of the preceding types)

      It also must provide a way to indicate a mapping for the _id property (by convention or annotation).

            Assignee:
            justin.lee Justin Lee
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: