Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/athiththan11/hibernate-crud
CRUD Application with Hibernate and PostgreSQL
https://github.com/athiththan11/hibernate-crud
crud-application elephantsql hibernate hibernate-orm java-8 maven postgresql restful-api
Last synced: about 5 hours ago
JSON representation
CRUD Application with Hibernate and PostgreSQL
- Host: GitHub
- URL: https://github.com/athiththan11/hibernate-crud
- Owner: athiththan11
- License: mit
- Created: 2019-02-27T11:59:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T00:59:45.000Z (about 2 years ago)
- Last Synced: 2023-03-07T14:10:44.041Z (over 1 year ago)
- Topics: crud-application, elephantsql, hibernate, hibernate-orm, java-8, maven, postgresql, restful-api
- Language: Java
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hibernate CRUD
A simple student CRUD Application with Hibernate and PostgreSQL (hosted on [ElephantSQL](https://www.elephantsql.com/))
Checkout the live demo [Deployed on Heroku](https://hibernate-crud.herokuapp.com)
## Usage
Clone or download the application and replace the configuration and connection properties.
Build the application using the following command
```bash
mvn clean install package
```and deploy it in your favourite application server.
## API Endpoints
- GET [/api/students](http://localhost:8080/hibernate/api/students) : to read all students
- GET [/api/students/{id}](http://localhost:8080/hibernate/api/students/4) : to read a particular student object
- POST [/api/students](http://localhost:8080/hibernate/api/students) : to save a student objectThe request should send a body in `application/json` format as follows
```json
{
"name": "Github",
"username": "github",
"email": "[email protected]"
}
```- PUT [/api/students/{id}](http://localhost:8080/hibernate/api/students/4) : to update a student object
The request should send a body in `application/json` format as follows
```json
{
"name": "Github Microsoft",
"username": "github",
"email": "[email protected]"
}
```- DELETE [/api/students/{id}](http://localhost:8080/hibernate/api/students/5) : to delete a student object