[JAVA-173] ReflectionDBObject: make extracted field name start with a lower case letter Created: 06/Oct/10 Updated: 12/Jul/13 Resolved: 12/Jul/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Codecs |
| Affects Version/s: | 2.1 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ilya Brodotsky | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The expected behaviour is to convert the first letter to lower case. Most Java tools are doing this if dealing with getter/setter names. Domain class: public class E2 extends ReflectionDBObject { private String sss; public E2(String sss, int iii) { this.sss = sss; this.iii = iii; }public String getSss() { return sss; }public void setSss(String sss) { this.sss = sss; }public int getIii() { return iii; }public void setIii(int iii) { this.iii = iii; }} Saved data: |
| Comments |
| Comment by Jeffrey Yemin [ 12/Jul/13 ] |
|
In 3.0 we're going to have much better support for encoders and decoders, but through an entirely different mechanism. So we're not going to fix this, and instead ask users to migrate to a more flexible codec scheme that doesn't require inheritance from ReflectionDBObject |