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

Bug while converting database attribute to POJO

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: POJO
    • Labels:
      None
    • Environment:
      Java MongoDB Using Reactivestreams for Storing DataBase Attributes as a POJO Object

      I have declared a variable private String transitNumber(using camel case) annotated with @BsonProperty("transit_number") in my POJO class. However, when I execute my query as in java MongoDB using reactive streams, the value of transitNumber = null is shown in the query result. But when I * declare my variable as *private TransitNumber transit_number(using snake case), the query result is being accurately returned. However, according to the Java conventions, all the variables must be declared in the camel case fornat. Can anyone explain to me why this happens? ** 

       ** 

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            kunaljani18@gmail.com Kunal jani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: