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

Types and Programming Languages

Types and Programming Languages

Benjamin C. Pierce / The MIT Press / 2002-2-1 / USD 95.00

A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. The study of typ......一起来看看 《Types and Programming Languages》 这本书的介绍吧!

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具