morphia
morphia copied to clipboard
MongoDB object-document mapper in Java based on https://github.com/mongodb/mongo-java-driver
**Is your feature request related to a problem?** I don't see the need to store discriminators by default, it just adds more data to the document, so it has an...
References should be populated using aggregation (lookup) rather than additional db queries.
**Is your feature request related to a problem? Please describe.** Caching of loading entities, particularly references, is not currently configurable in 2.0. Add the knobs necessary to support this similar...
Morphia: 1.3 JDK: 8 Mongodb: 3.4 Lately I've been using Morphia in combination with [Sparkjava](http://sparkjava.com) and [Kotlin](https://kotlinlang.org) to build some REST APIs and often I have to check of data...
Hello, This is a feature request. When mapping documents to POJO's, it would be nice to use the `@Property` annotation to map nested documents using dot notation. For example; **Document**...
Sometimes it can be useful to store a null value. While 99% of the time I don't, there are several times I want to null something out. It would be...
ensureIndexes() throws unhandleable "Index with name: xyz_1" already exists with different options"
When opening a datastore, we call the ensureIndexes() on it so be sure all indexes defined by morphia annotations are created. If annotations get updated in the software over time,...
This would be a peer to ensureIndexes() that would take the mapped indexes and compare them with what's in the database. Possible options to the validator would be to log...
As supposed in the [Wiki](https://github.com/mongodb/morphia/wiki/LifecycleMethods) I implemented a lastChange timestamp. Now I found out by accidence that the @PrePersist annotated method is called many times more. If you have a...