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

Bug while converting database attribute to POJO

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • POJO
    • None
    • Java MongoDB Using Reactivestreams for Storing DataBase Attributes as a POJO Object

    Description

      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? ** 

       ** 

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: