Morphia 2.0.2
A Fantom to MongoDB object mapping library

Morphia is a Fantom to MongoDB object mapping library.

Morphia is an extension to the Mongo library that maps Fantom objects and their fields to and from MongoDB collections and BSON documents.

Morphia features include:

  • All Fantom literals and BSON types supported by default,
  • Support for embedded / nested Fantom objects,
  • Extensible mapping - add your own Fantom <-> Mongo converters,
  • Optimistic locking support
  • Cursor support

Note: Morphia has no association with Morphia - the Java to MongoDB mapping library. Well, except for the name of course!

Read more...

Install

To install Morphia with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install Morphia with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/ directory.

afMorphia.pod (73.94 kB)

Use

To use Morphia in a Fantom project, add a dependency to the project's build.fan:

depends = ["sys 1.0", ..., "afMorphia 2.0.2 - 2.0"]

Documentation

Information

Meta information on the Morphia pod:

Published by
Steve Eynon
Organisation
Fantom-Factory Ltd
Pod file size
73.94 kB
Licence
ISC
Built on
4th Jun 2022
Source code
via Git at https://github.com/Fantom-Factory/afMorphia
Depends on
afBeanUtils, afBson, afConcurrent, afMongo, concurrent, sys
Referenced by
afEggbox, afMorphiaIoc
Javascript Compatible
No

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 22 releases of Morphia: