https://github.com/leiberbertel/employeecrud-jdbc
This is an app that performs crud operations on an entity called employees. It is a practice project to deepen in transactions, connection pooling and native data manipulation with the JDBC API. It consists of several branches where several versions will go where hibernate will be used as ORM.
https://github.com/leiberbertel/employeecrud-jdbc
dbcp2 java jdbc jpa-hibernate mysql
Last synced: 4 months ago
JSON representation
This is an app that performs crud operations on an entity called employees. It is a practice project to deepen in transactions, connection pooling and native data manipulation with the JDBC API. It consists of several branches where several versions will go where hibernate will be used as ORM.
- Host: GitHub
- URL: https://github.com/leiberbertel/employeecrud-jdbc
- Owner: leiberbertel
- License: mit
- Created: 2024-10-17T02:55:41.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T22:12:07.000Z (7 months ago)
- Last Synced: 2025-01-11T07:38:07.649Z (5 months ago)
- Topics: dbcp2, java, jdbc, jpa-hibernate, mysql
- Language: Java
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Basic employee crud
### _This is an app that performs crud operations on an entity called employees. It is a practice project to deepen in transactions, connection pooling and native data manipulation with the JDBC API. It consists of several branches where several versions will go where hibernate will be used as ORM_:

## Running the API 🚀
To run the API, you will need JDK version 17+ installed on your machine.
[Download it here:](https://adoptium.net/es/temurin/releases/?version=17)First, clone the repository :
```bash
git clone https://github.com/leiberbertel/EmployeeCRUD-JDBC-Hibernate.git
cd CRUDMySQL
```Next, open your command terminal and located in the project root, execute the commands:
```bash
mvn clean package
```The project has a class that handles the database configuration, within the config package. It obtains four environment variables, they are: **USER**, **PASSWORD**, **PORT**, **DATABASE**. In order to run the project it is necessary to create an .env file and configure the aforementioned environment variables.
An example of configuration is:
```env
USER=john_doe
PASSWORD=admin
PORT=3306
DATABASE=project_example
```After that configuration run the jar:
```bash
java -jar target/nombre-de-tu-aplicacion.jar
```## Built with ðŸ›
* Java version 20
* Mysql
* JDBC
* Hibernate
* dotenv-java
* Apache Commons DBCP