All posts in “mongodb”

Autowiring Morphia entities

My current project is using Morphia to handle object mapping to/from mongoDB and I wanted to add dependency injection using Spring to my entities like this:

Notice the @Transient annotation that tells Morphia […]