Top "Morphia" questions

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

Unit testing with MongoDB

My database of choice is MongoDB. I'm writing a data-layer API to abstract implementation details from client applications - that …

java unit-testing mongodb junit morphia
Can I use String as ID type for mongodb document?

I am using java/morphia to deal with mongodb. The default ObjectId is not very convenient to use from Java …

mongodb key morphia
How to retrieve last update time of each document in MongoDB?

I would like to know if there is a way to get the last update/modify time of data (i.…

mongodb morphia
MongoDB Composite Key

I'm just getting started with MongoDb and I've noticed that I get a lot of duplicate records for entries that …

java mongodb morphia
MongoDB: $in with an ObjectId array

Just a quick question about something I've just experienced and I'm still thinking about why: mongos> db.tickets.count({ "…

mongodb mongodb-query mongodb-java morphia
Groovy could not find matching constructor?

Please note: although this question mentions Mongo it is surely a pure Groovy question at heart. My MyApp#bootstrap method: …

mongodb syntax groovy runtimeexception morphia
Mongodb: `com.mongodb.MongoSocketReadException: Prematurely reached end of stream` with morphia

I've a simple data structure (the Transaction referenced below) to be inserted into mongodb: {"amount":111,"debitAcc":"588188286231743e7d5c923d","…

mongodb mongodb-java morphia
Can't find a codec for my class

I have simple class named Signal. Class looks as follows: public class Signal { private String id; private Date timestamp; public …

java mongodb morphia
morphia and howto update existing document field

Im completely new to MongoDb and Morphia and trying to learn how to update my document. I cannot see/understand …

java mongodb morphia
Querying Morphia by Id

I am using Morphia, the Pojo mapper for MongoDB, and I find difficult a task that in my view should …

java mongodb morphia