MorphiaRelease Notes
v2.0
A complete re-write from the ground up. ORM based on Fantom Factory's afJson library.
v2.0.4
- New: PickleMode to serialise all fields of an class, except for @Transientfields.
- Fix: Added a guard against Mongo getMore()returning an empty batch.
v2.0.2
- New: Added connMgr()anddb()convenience methods toDatastore.
- Chg: Updated to use afMongo 2.1.
v2.0.0
- New: Everything!
- Chg: IoC support has moved to afMorphiaIoc.
v1.2
v1.2.6
- New: @Property.defValfeature - default values are not saved to MongoDB.
- Chg: Added advanced (@NoDoc)PropertyCacheclass to centralise and speed up@Propertysearching on entities.
v1.2.4
- New: Datastore.deleteAll()convenience method.
- Chg: Removed internal references to DatastoreImplsoDatastoremay be decoratored. (See upcoming Dirty Cash!)
v1.2.2
- New: Support for optimistic locking via _versionproperties.
- New: Mixed inheritance support via _typeproperties.
- Chg: Queriesmixin is now non-const.
v1.2.0
- New: Support for Text Searching!
- New: Query.toStr()returns something useful.
- Bug: Passing nulltoQueryCriterion.eq()orQueryCriterion.notEq()resulted in an NPE.
v1.1
v1.1.2
- Chg: Query.field()&QueryExecutor.orderBy()may now take an actual entity field instance.
- Chg: Lists returned from Datastore.findAll()are now of the datatype, not Obj.
- Chg: Exposed Converters.get().
- Chg: Added hook to ObjConverterthat collects all property fields.
- Bug: If using a non-BSON type for ID fields, an Err was thrown after an update if the document hadn't changed.
v1.1.0
- New: Queriesmixin to ease Query construction.
- Chg: Converter.toMongo()now takes aTypeparam as thefantomObjarg may now be nullable. This allowsnullFantom objects to be represented by non-null Mongo objects. (Breaking change.)
- Chg: Renamed @Property.type -> @Property.implType. (Breaking change.)
- Chg: Select methods on Datastoremay take anullID (handy for inlining reads) - as long ascheckedisfalse!
- Chg: Updated to use IoC 3.0.
v1.0
v1.0.10
- Bug: QueryExecutor.orderByIndex()always threw an Err.
- Bug: QueryExecutor.limit()may takenull.
v1.0.8
- Chg: Map keys are automatically encoded / decoded as unicode escape sequences as MongoDB does not allow characters $and.in keys.
v1.0.6
- New: Added Datastore.isEmpty().
- Chg: MapConverter.makeMap()now always creates an ordered map.
- Bug: Only BSON types could be used for the _idfield.
v1.0.4
- New: SimpleConverterutility class for converting simple serializable types to and fromStr.
- New: Converters for Depend,Locale,MimeType,Time,TimeZone,Unit,Uuid,Version.
- Chg: Documented and made public the Convertersservice.
- Chg: Datastore.insert()now returns the given entity.
v1.0.2
- Bug: Binaryobjects with a generic subtype could not be read from the database as BSON converted them toBufobjects.
v1.0.0
- New: Introduced the Query Builder API.
- New: IntSequencesservice provides an alternative to unique ObjectIDs.
- New: Mongo Collectionsmaybe injected in the same manner asDatastoreobjects, using the@Inject.typeattribute.
v0.0
v0.0.10
- Chg: Deleted @DatastoreType, use@Injectinstead.
- Chg: Updated to use IoC 2.0.0 and IoC Config 1.0.16
v0.0.8
- Chg: Updated to use IoC 1.7.6 and IoC Config 1.0.14
v0.0.6
- Chg: Updated to use IoC 1.7.0.
v0.0.4
- Chg: @Entityfacet is now inherited.
- Bug: Datastore.findOne()andDatastore.get()could throw aNullErrif checked was false.
v0.0.2
- New: Preview Release