Just a little morphia for the worst ones.
就一点点,给那些最重的伤号也好。
Morphia is a powerful tool for interacting with MongoDB.
Morphia是与MongoDB进行交互的强大工具。
Morphia, by default, USES the class name to name the collection.
在默认情况下,Morphia使用类名称来命名集合。
To apply the indexes, Morphia needs to know which classes are going to be mapped.
要应用索引,Morphia需要知道映射哪些类。
Morphia automatically creates this field to record the type of the object in MongoDB.
Morphia自动创建此字段以便记录MongoDB中的对象类型。
As an alternative to filter queries, Morphia offers a fluent interface for building queries.
作为筛选查询的替代,Morphia为构建查询提供了更好的接口。
This article covered the primary aspects of working with Morphia but excluded some features.
本文涵盖了使用Morphia的主要方面,但排除了一些功能。
Full details on the filter operators are available in the Morphia online documentation (see Resources).
有关筛选运算符的全部细节都在Morphia在线文档中(参见参考资料)。
You need to instantiate Morphia a little bit differently to ensure the indexes are applied. You can do this as follows.
您需要以稍微不同的方式实例化Morphia以便确保应用索引。
I encourage you to check out the Morphia Google Code project for information about its data access object (DAO) support, validation, and manual mapping capabilities.
要获得有关其数据访问对象(Data Access Object,DAO)支持、验证和手动映射功能的信息,我鼓励您查看MorphiaGoogleCode项目。
When the object is loaded from the Mongo collection, Morphia follows these references to build the object graph. For example, the distributor property looks like this in the persisted document.
在从Mongo集合中加载对象时,Morphia遵循着这些引用来建立对象图。
When the object is loaded from the Mongo collection, Morphia follows these references to build the object graph. For example, the distributor property looks like this in the persisted document.
在从Mongo集合中加载对象时,Morphia遵循着这些引用来建立对象图。
应用推荐