Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Latest commit

 

History

History
90 lines (57 loc) · 2.11 KB

README.md

File metadata and controls

90 lines (57 loc) · 2.11 KB

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.0.8

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>studio.crud.crudframework</groupId>
    <artifactId>crud-framework-hibernate5-connector</artifactId>
    <version>0.7.0</version>
</dependency>

Gradle:

implementation("studio.crud.crudframework:crud-framework-hibernate5-connector:0.7.0")

MongoDB Connector

<dependency>
    <groupId>studio.crud.crudframework</groupId>
    <artifactId>crud-framework-mongo-connector</artifactId>
    <version>0.7.0</version>
</dependency>

Gradle:

implementation("studio.crud.crudframework:crud-framework-mongo-connector:0.7.0")

Web

Contains useful utilities and classes for web operations

<dependency>
    <groupId>studio.crud.crudframework</groupId>
    <artifactId>crud-framework-web</artifactId>
    <version>0.3.3</version>
</dependency>

Gradle:

implementation("studio.crud.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