crud2

a anti orm data access layer

License

License

GroupId

GroupId

org.crud2
ArtifactId

ArtifactId

crud2
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

crud2
a anti orm data access layer
Project URL

Project URL

https://github.com/crud2/crud2
Source Code Management

Source Code Management

https://github.com/crud2/crud2

Download crud2

How to add to project

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

Dependencies

compile (9)

Group / Artifact Type Version
com.alibaba : fastjson jar 1.2.62
org.projectlombok : lombok Optional jar 1.18.10
org.slf4j : slf4j-api Optional jar 1.7.25
org.springframework : spring-core Optional jar 5.0.8.RELEASE
org.springframework : spring-beans Optional jar 5.0.8.RELEASE
org.springframework : spring-context Optional jar 5.0.8.RELEASE
org.apache.tomcat.embed : tomcat-embed-core Optional jar 8.5.47
org.mybatis : mybatis-spring Optional jar 1.3.2
org.springframework : spring-jdbc jar 5.0.7.RELEASE

Project Modules

There are no modules declared in this project.

CRUD2 project

A not only ORM framework based on mybatis

ntroduce

  • A simpler method is provided to realize the operation of query, insert, delete and update.
  • The goal of the project is to simplify the process complexity. Programmers focus on business and data model design, free from object-oriented programming and multiple design patterns.

Features

Getting started

it is recommended to use spring boot starter to introduce

Maven dependency

<dependency>
    <groupId>org.crud2.spring.boot</groupId>
    <artifactId>crud2-spring-boot-starter</artifactId>
    <version>0.0.1</version>
</dependency>

Query

basic use

CRUD.query()
	.from(String tableName)
	.select(String ... fields)
	.pageSizeIndex(int pageSize,pageIndex)
	.where(String fieldName,String oper,Object value)
	.queryMapPager()

page params

query.pageSizeIndex(int pageSize,int pageIndex)
query.pageOffsetLimit(int offset,int limit)

query result

by default,query can return a map<string,Object> or a arraylist data.

You can customize the keyname of the returned map, by default, the keyname will be converted to lowercase(LowerCaseMapResultKeyNameResolver)

query.queryMapPager() // return a List<Map<String,Object>>
query.queryArraylistPager()

Whwere condition

Insert

Update

Delete

Auto Engine

License

CRUD2 is under the Apache 2.0 license. See the LICENSE file for details.

important : This project is not completed, please do not use it in the production environment

Versions

Version
0.1.0