(Quick Reference)

toDBObject

Purpose

Generates a DBObject from a domain instance

Examples

DBObject dbObject = book.toDBObject()