Modified visibility of all entity's fields to protected since these entities will be extended.
Also added entities to be extended when using MongoDB as a database.
Merge remote-tracking branch 'origin/master'