sanen cdm core

Java™ ORM framework

License

License

GroupId

GroupId

online.sanen
ArtifactId

ArtifactId

cdm-core
Last Version

Last Version

2.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

sanen cdm core
Java™ ORM framework
Source Code Management

Source Code Management

https://github.com/sanen-projects/cdm-core

Download cdm-core

How to add to project

<!-- https://jarcasting.com/artifacts/online.sanen/cdm-core/ -->
<dependency>
    <groupId>online.sanen</groupId>
    <artifactId>cdm-core</artifactId>
    <version>2.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/online.sanen/cdm-core/
implementation 'online.sanen:cdm-core:2.2.1'
// https://jarcasting.com/artifacts/online.sanen/cdm-core/
implementation ("online.sanen:cdm-core:2.2.1")
'online.sanen:cdm-core:jar:2.2.1'
<dependency org="online.sanen" name="cdm-core" rev="2.2.1">
  <artifact name="cdm-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='online.sanen', module='cdm-core', version='2.2.1')
)
libraryDependencies += "online.sanen" % "cdm-core" % "2.2.1"
[online.sanen/cdm-core "2.2.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.commons : commons-dbcp2 jar 2.5.0
net.sf.ehcache : ehcache jar 2.10.3

provided (5)

Group / Artifact Type Version
online.sanen : cdm-api jar 2.2.1
online.sanen : cdm-template jar 1.4.1
online.sanen : mhdt-common jar 1.4.2
c3p0 : c3p0 jar 0.9.1.2
com.alibaba : druid jar 1.1.10

test (6)

Group / Artifact Type Version
mysql : mysql-connector-java jar 5.1.6
org.xerial : sqlite-jdbc jar 3.27.2.1
com.oracle » ojdbc6 jar 12.1.0.1-atlassian-hosted
net.sourceforge.jtds : jtds jar 1.3.1
org.slf4j : slf4j-nop jar 1.7.2
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

20181229161612418.jpg

Cdm Framework

Travis codecov Maven central License

简体中文 | English

一个使用简单,零配置,容错率高,效率的Java™ ORM 数据库框架

特性

  • 使用简单 没有第三方依赖,一行代码即可初始化数据库连接

  • 零配置 设计原则遵循习惯大于约定,如有配置必要,使用注解替代XML,JSON等配置文件

  • 容错率高 非致命错误,自动采取默认方案替代

  • 效率 节省时间,虽然支持编写sql但大部分情况没有这样做的必要

🆚 与Mybatis比较

  • 与Mybatis相比,无配置文件,少数需要配置的参数通过注解加以实现
  • 小巧,使用简单,只需看看示例你就能够学会使用
  • 大部分情况下通过组合函数来替代sql(支持复杂条件查询,limit,排序等),数据库移植性好

🆚 与Hibernate比较

  • 不会因为配置复杂带来众多bug
  • 支持批量修改,删除
  • 内置缓存让执行效率更高
  • 虽然是orm框架,但还是建议复杂问题sql解决,类似Hibernate的一对多关系相较于sql,会把问题变的复杂和难以维护

使用

Maven

https://mvnrepository.com/artifact/online.sanen/cdm-all

	
<!-- https://mvnrepository.com/artifact/online.sanen/cdm-all -->
<dependency>
    <groupId>online.sanen</groupId>
    <artifactId>cdm-all</artifactId>
    <version>最新版本</version>
</dependency>


	

Gradle

	
compile group: 'online.sanen', name: 'cdm-all', version: '2.2.0'
	

文档

访问:Wiki
访问:Javadoc
PS:项目一直在更新,但本人比较懒没有更新git的习惯,所以需要最新Javadoc或源码请联系。

使用过程中有疑问或改进建议?

请提交 Issue或直接邮件 282854237@qq.com,将会在24小时内作出答复

Versions

Version
2.2.1
2.2.0
2.1.0
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2-RELEASE
2.0.1-RELEASE
1.0-RELEASE
1.0.0