[JAVA-2209] Primitive codecs Created: 07/Jun/16 Updated: 03/Apr/17 Resolved: 13/Jan/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Codecs |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Justin Lee | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | POJO |
| Description |
|
We need these Codecs to support general POJOs |
| Comments |
| Comment by Ross Lawley [ 03/Apr/17 ] |
|
See |
| Comment by Ross Lawley [ 02/Feb/17 ] |
|
Apart of https://mongodbcr.appspot.com/114600001/ I took an alternative approach so that the FieldModelBuilder boxes primitive types when mapping classes. |
| Comment by Jeffrey Yemin [ 07/Jun/16 ] |
|
What would a codec for a primitive look like? You can't create a Codec<int>. Could we use Codec<Integer> and box/unbox the primitive? |