https://github.com/petruki/simple-mysql-crud
Simple Repository Framework for working with MySQL.
https://github.com/petruki/simple-mysql-crud
crud framework mysql
Last synced: about 1 month ago
JSON representation
Simple Repository Framework for working with MySQL.
- Host: GitHub
- URL: https://github.com/petruki/simple-mysql-crud
- Owner: petruki
- License: mit
- Created: 2020-08-22T19:38:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T20:02:46.000Z (almost 6 years ago)
- Last Synced: 2025-02-06T05:35:06.220Z (over 1 year ago)
- Topics: crud, framework, mysql
- Language: Java
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
This is just a simple Repository Framework for working with MySQL.
It comes with a built-in CRUD operations that can be used with little configuration on your model layer.
**Limitations**
- It does not create or read relations
- DB settings are still hard coded
- It is simple, so do not expect much =D
# Usage
1) Run `mvn clean install`
2) Setup your MySQL DB connection at: com\github\petruki\framework\db\DatabaseFactory.java
3) Annotate your model class with @Table and @Column annotations
4) Make your model extend AbstractEntity>.
5) Implement the repository class that extends AbstractCrudRepository>
An example can be found at com\github\petruki\playground