Top "Morphia" questions

Morphia is a lightweight type-safe library for mapping Java objects to/from MongoDB.

Complex AND-OR query in Morphia

I've been trying to combine the and() and or() methods of the Query interface to create a set of conditions …

java mongodb morphia
How to prefer reads on secondaries in MongoDb

When using mongodb in a replica set configuration (1 arbiter, 1 primary, 2 slaves); how do I set a preference that read be …

java mongodb replication morphia
Morphia query with or operator

I want to know how to write a Morphia mongodb query with 'or' operator I wrote mongodb query like this …

java mongodb morphia
Saving enum into mongoDB

Is there a way to save enum into the mongoDB? I want to save something like: public enum SnapshotType { EVENT, …

mongodb morphia
How to get distinct values out of a collection with where condition in mongodb?

How to get distinct values out of a collection with where condition? For Example, I have Worker class, which contains …

java mongodb morphia
Query MongoDB for ordered distinct values

I am using Morphia Java driver for querying a MongoDB that contains a collection of the following form: MyCollection { TypeA …

java mongodb morphia database nosql
Is it possible to store multiple types of Objects into 1 mongodb collection?

using document oriënted database mongodb and the Object Document Mapper (ODM) morphia Lets say we have 3 different classes; Object, …

mongodb morphia document-oriented-db
Completing the Morphia/MongoDB example code

I've been trying to get the example code from the Morphia Website working with very little success, I was wondering …

java mongodb morphia
How can I sort MongoDB query results by inner array size?

I'm using Morphia to access mongoDB. I need to get a list of objects by the length of the inner …

java mongodb morphia
a field name "ClassName" is being inserted into mongodb by morphia

I'm pretty new to mongodb and morphia, after starting using it, I realize that there is a extra part in …

java mongodb morphia