Queries on Using POJO - Part 1


I have few queries on lecture ‘Using POJO - Part 1’.

  1. I don’t see ‘actors’ collections in the mflix database in the compass. So how doe sit all work?

  2. I added annotations to the AatorBasic.java, but still test ‘testReadObjectWithCustomFieldCodec’ fails.
    Failure happens for assert:
    Assert.assertEquals(mappedActor.getDateOfBirth(), stringIdActor.getDateOfBirth());

Please ignore point 1. I understand that testDB is created and dropped after tests are over.
Point 2 still holds true.

Edit: Point 2 also solved. Annotations needed for 2 pojo classes. I had only on one.

1 Like