MongoDB 的 ORM框架 MJORM

码农软件 · 软件分类 · ORM/持久层框架 · 2019-09-24 17:11:34

软件介绍

MJORM 是一个mongoDB 的"ORM"映射表,类似Hibernate 的ORM,操作,配置使用比较简单,MJORM有其自身的MQL也对应Hibernate的HQL.用过Hibernated的开发者应该会很熟悉这种概念.如果是从MYSQL+Hibernaer的这种开发模式转入mongoDB的开发,那MJORM应该是不错的选择,具体内容看详细介绍.

示例代码:

// connect to mongo
Mongo mongo = new Mongo(new MongoURI(uri)); // 10gen driver

// create object mapper and add classes
AnnotationsDescriptorObjectMapper objectMapper = new AnnotationsDescriptorObjectMapper();
mapper.addClass(Person.class);
mapper.addClass(Address.class);

// create MongoDao
MongoDao dao = new MongoDaoImpl(mongo.getDB("dbName"), objectMapper);

 

本文地址:https://codercto.com/soft/d/15313.html

Structure and Interpretation of Computer Programs - 2nd Edition

Structure and Interpretation of Computer Programs - 2nd Edition

Harold Abelson、Gerald Jay Sussman / The MIT Press / 1996-7-25 / USD 145.56

Structure and Interpretation of Computer Programs has had a dramatic impact on computer science curricula over the past decade. This long-awaited revision contains changes throughout the text. Ther......一起来看看 《Structure and Interpretation of Computer Programs - 2nd Edition 》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具