google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

Allow Mapper to be provided when constructing a new instance of Morphia. #447

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version are you using? (Morphia/Driver/MongoDB)
Mongo DB     - 2.2.2
Mongo Driver - 2.10.1
Morphia      - 0.99

When constructing a new Morphia instance the Mapper field is final and there is 
no opportunity to provide a customized instance of the Mapper through the 
constructor.

This makes it difficult to extend the Mapper class and customize Morphia using 
inheritance.

A patch is provided with the proposed changes which would allow someone to 
extend the Mapper class and allow Morphia to use it.

Original issue reported on code.google.com by russell....@gmail.com on 31 Jan 2013 at 9:43

Attachments: