Using Pojo test fails

I was trying to run testReadObjectWithCustomFieldCodec but num_movies and date_of_birth are coming as null.

I assume we need to add Bsonproperty field to ActorWithStringId class.

Please check this link

Using Pojo lesson “dateOfBirth=null”

1 Like

Hi @Ankujgup,
Add @BesonProperty annotation in both file >> ActorBasic.java and ActorWithStringId.java

aide

1 Like