Setting up a model

In our already existing Movie model, we just added one more annotation: @Document(collection = "movies"). This annotation will inform MongoDB as to the name of the collection in the DB where this model will be stored.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.198.227