All Projects → indrabasak → jpa-postgres-spring

indrabasak / jpa-postgres-spring

Licence: other
JPA Postgres Spring Boot Example

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to jpa-postgres-spring

Eladmin
项目基于 Spring Boot 2.1.0 、 Jpa、 Spring Security、redis、Vue的前后端分离的后台管理系统,项目采用分模块开发方式, 权限控制采用 RBAC,支持数据字典与数据权限管理,支持一键生成前后端代码,支持动态路由
Stars: ✭ 16,943 (+99564.71%)
Mutual labels:  jpa
random-jpa
Create random test data for JPA/Hibernate entities.
Stars: ✭ 23 (+35.29%)
Mutual labels:  jpa
datanucleus-core
DataNucleus core persistence support - the basis for anything in DataNucleus
Stars: ✭ 112 (+558.82%)
Mutual labels:  jpa
learning-code
Coding for studying
Stars: ✭ 20 (+17.65%)
Mutual labels:  jpa
pushnotification
Push notifications with Spring Boot and OneSignal
Stars: ✭ 25 (+47.06%)
Mutual labels:  jpa
springboot-tutorials
codehome出品SpringBoot2.x基础教程
Stars: ✭ 77 (+352.94%)
Mutual labels:  jpa
Blaze Persistence
Rich Criteria API for JPA providers
Stars: ✭ 233 (+1270.59%)
Mutual labels:  jpa
jpa-unit
JUnit extension to test javax.persistence entities
Stars: ✭ 28 (+64.71%)
Mutual labels:  jpa
spring-data-jpa-mongodb-expressions
Use the MongoDB query language to query your relational database, typically from frontend.
Stars: ✭ 86 (+405.88%)
Mutual labels:  jpa
jease
Jease is a Java CMS framework based on Object Database
Stars: ✭ 25 (+47.06%)
Mutual labels:  jpa
phoenix-hibernate-dialect
An Apache Phoenix Hibernate dialect
Stars: ✭ 20 (+17.65%)
Mutual labels:  jpa
hrms
使用SpringBoot开发的人力资源管理系统 Human Resource Manage System
Stars: ✭ 47 (+176.47%)
Mutual labels:  jpa
o365
O365管理系统是一个以java语言开发的基于Microsoft Graph Restful API的多全局管理系统,理论上支持任何Office全局的管理(A1,A3,A1P,E3,E5等),你可以很方便的使用它来批量添加,批量删除,批量启用,批量禁用,搜索和查看用户,绑定解绑域名,生成邀请码,邀请朋友注册,提升和收回管理员权限,更新密钥,查看订阅,分配订阅(创新用户时),查看多全局报告
Stars: ✭ 281 (+1552.94%)
Mutual labels:  jpa
MiniDao
An powerful enhanced toolkit of SpringJdbc for simplify development
Stars: ✭ 200 (+1076.47%)
Mutual labels:  jpa
springboot-learning-demo
springboot学习示例
Stars: ✭ 17 (+0%)
Mutual labels:  jpa
Spring Framework Petclinic
A Spring Framework application based on JSP, Spring MVC, Spring Data JPA, Hibernate and JDBC
Stars: ✭ 251 (+1376.47%)
Mutual labels:  jpa
springboot-rest-api-angularjs-https
REST API https with Spring Boot and Angular JS. Use MySQL, Hibernate and Spring Security.
Stars: ✭ 38 (+123.53%)
Mutual labels:  jpa
HumanResources
Account Registration and Confirmation. Exception Handling. Caching with Redis.Mail sender by Apache Kafka.Notification send with RabbitMq.
Stars: ✭ 19 (+11.76%)
Mutual labels:  jpa
2021-pick-git
💻 Github Repo 기반 개발 장려 SNS
Stars: ✭ 125 (+635.29%)
Mutual labels:  jpa
spring-data-jpa-demo
这是一个 Spring Data JPA 的 demo, 旨在演示大部分常用的使用方法。
Stars: ✭ 43 (+152.94%)
Mutual labels:  jpa

Build Status

JPA PostgreSQL Spring Service Example

This is a Spring Boot based microservice example backed by PostgreSQL database. This examples shows the following:

  • Use spring.datasource properties and Spring Data auto configuration.
  • How to use JPA's CrudRepository
  • How to insert UUID field in Postgres database and generate UUID index.
  • How to convert Java Enum to Postgres Enum type.
  • How to use Dozer Java Bean mapper.

PostgreSQL Assumptions

  • You have a PostgreSQL database server running on your localhost and in port 5432.
  • You have a database named postgres running on the server
  • The server has a user named postgres with password postgres.
  • If any of the assumptions doesn't hold true, change the spring.datasource properties in the application.yml file.

Create Database Entities

Execute the create-db.sql script under resources directory on your PostgreSQL server either using PostgreSQL administration and management tools, pgAdmin, or from the PostgreSQL interactive terminal program, called psql.

Build

Execute the following command from the parent directory:

mvn clean install

Start the Service

The main entry point jpa-postgres-spring example is com.basaki.example.postgres.boot.BookApplication class. You can start the application from an IDE by starting the BookApplication class.


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.1.RELEASE)
...
2017-03-08 21:50:17.987  INFO 62548 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2017-03-08 21:50:17.992  INFO 62548 --- [           main] c.b.e.p.spring.boot.BookApplication      : Started BookApplication in 7.152 seconds (JVM running for 7.566)

The application starts up at port 8080.

Accessing Swagger

On your browser, navigate to http://localhost:8080/ to view the Swagger.

Click the Show/Hide link to view all the operations exposed by Book API.

POST Example

Once expanded, create a new Book entry by clicking POST and entering the following JSON snippet in the request field and click Try it out!.

Here is the response you get back. Please notice the book title and the author gets captitalized before insertion.

GET Example

To view all books, click GET and entry either title, author, genre or any combination of them and click lick Try it out!. The title and author parameters are case insensitive. Here is the response you get back:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].