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