[JAVA-1276] Create Codec implementation for POJOs Created: 13/Jun/14  Updated: 05/Jun/17  Resolved: 22/May/15

Status: Closed
Project: Java Driver
Component/s: Codecs
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Justin Lee
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: POJO

 Description   

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).



 Comments   
Comment by Justin Lee [ 22/May/15 ]

broke up in to smaller pieces under the epic JAVA-1812

Generated at Thu Feb 08 08:54:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.