Idane / krud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRUD Framework

Maven Central CircleCI

The CRUD Framework is a Spring-powered framework intended to simplify and expand on CRUD operations in Spring, currently supporting both MongoDB(Via Spring Data) and JPA.

Compatibility

The CRUD Framework is currently compatible with Spring Boot 2.6.7

Getting started

Dependencies

Only one connector is required, but it is possible for multiple connectors to work in tandem with eachother.

JPA/Hibernate5 Connector

Maven:

<dependency>
    <groupId>dev.krud.crudframework</groupId>
    <artifactId>crud-framework-hibernate5-connector</artifactId>
    <version>0.23.0</version>
</dependency>

Gradle:

implementation("dev.krud.crudframework:crud-framework-hibernate5-connector:0.9.0")

MongoDB Connector

<dependency>
    <groupId>dev.krud.crudframework</groupId>
    <artifactId>crud-framework-mongo-connector</artifactId>
    <version>0.23.0</version>
</dependency>

Gradle:

implementation("dev.krud.crudframework:crud-framework-mongo-connector:0.9.0")

Web

Contains useful utilities and classes for web operations

<dependency>
    <groupId>dev.krud.crudframework</groupId>
    <artifactId>crud-framework-web</artifactId>
    <version>0.23.0</version>
</dependency>

Gradle:

implementation("dev.krud.crudframework:crud-framework-web:0.3.3")

Operation

To activate the CRUD Framework, add the activation annotations for your chosen connectors to a configuration class;

Connector Annotation
hibernate5 @EnableJpaCrud
mongo @EnableMongoCrud

Once activated, the CrudHandler bean can be wired and used.

License

CRUD Framework is released under CC-BY 3.0. For more information visit LICENSE.md

About

License:MIT License


Languages

Language:Java 50.5%Language:Kotlin 49.0%Language:Shell 0.5%