Morphia is a powerful tool for interacting with MongoDB. Morphia是与MongoDB进行交互的强大工具。
Morphia accomplishes this by providing a set of annotations and a wrapper around the Mongo Java driver. 通过提供一系列围绕MongoJava驱动程序的注释和包装程序,Morphia完成了这些操作。
Morphia's filter operators closely map to the query operators used in MongoDB queries. Morphia的筛选运算符紧密地映射到用于MongoDB查询的查询运算符。
Because clients to Morphia will send JSON documents to Gretty's endpoint, I'm also going to use Jackson, a nifty JSON-handling framework that already is part of Gretty's internals. 因为Morphia的客户端会将JSON文档发送至Gretty端点,我还要使用Jackson(一个非常好的处理JSON的框架),它已经是Gretty的一部分。
Morphia, by default, uses the class name to name the collection. 在默认情况下,Morphia使用类名称来命名集合。
This article covered the primary aspects of working with Morphia but excluded some features. 本文涵盖了使用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. 要获得有关其数据访问对象(DataAccessObject,DAO)支持、验证和手动映射功能的信息,我鼓励您查看MorphiaGoogleCode项目。
The@ Id annotation instructs Morphia which field to use as the document ID. @Id注释指示Morphia哪个字段用作文档ID。
Morphia automatically creates this field to record the type of the object in MongoDB. Morphia自动创建此字段以便记录MongoDB中的对象类型。
Now that I've defined and annotated the domain model, I'll show you how to use Morphia's Datastore to save, load, and delete entities. 现在我已经定义并注释了域模型,我将向您展示如何使用Morphia的Datastore以便保存、加载和删除实体。
A few drops of morphia will knock him out. 几滴的吗啡将令他如痴如醉。
The Analgesic Effect of Chinese Fevervine Herb Combined with Morphia After Cesarean Section 剖宫产术后鸡矢藤与吗啡联合镇痛效果观察
Finally, the research of cerebral morphia peptide will deepen our understanding to aesthetic education. 三是脑内吗啡肽的研究对美育作用认识的深化。
Oh, God, for some morphia! Morphine [ Hydrochloride, Sulfate] 啊,上帝,弄点吗啡来吧!
Just a little morphia for the worst ones. 就一点点,给那些最重的伤号也好。
Results The mixture capsule could rid of abstinence symptoms of addicted animals to heroin and morphia. 结果该胶囊能消除大小鼠对吗啡和海洛因依赖的戒断症状;
Method: Quickly apply oxygen and seat, inject morphia and furosemide depress left ventricular end-diastolic pressure and afterload. 方法:迅速给予吸氧、取坐位,静脉注射吗啡、速尿,迅速降低左室舒张终末压、后负荷;
Effects of Fentanyl and Morphia on Systemic Inflammatory Response Syndrome in Patients with Carcinoma of Stomach 芬太尼、吗啡自控静脉镇痛对胃癌根治术患者全身炎性反应综合征演变的影响
After relieving pain treated with morphia, the expression of c-fos protein significantly decreases. 应用吗啡止痛治疗后,脊髓c-Fos蛋白表达明显减少。
Results After injected morphia into side-ventricle, the frequence of PEN ( pain-excitatory neurons) discharge in normal neuron accummbens ( Nacc) and medial septal diagonal band complex increased, while the firing of PIN ( pain-inhibitory neurons) decreased. 结果侧脑室注入盐酸吗啡后可使大鼠伏隔核及内侧隔-斜角带核痛兴奋神经元(PEN)电活动增加,使痛抑制神经元(PIN)电活动减少。