JPA @ManyToOne example | Spring Boot

In this tutorial, I will show you how to implement Spring Data JPA Many-to-One example in Spring Boot for One-To-Many mapping using @ManyToOne annotation. You’ll know:

  • How to configure Spring Data, JPA, Hibernate to work with Database
  • How to define Data Models and Repository interfaces for JPA One-To-Many relationship using @ManyToOne
  • Way to use Spring JPA to interact with Database for Many-to-One association
  • Way to create Spring Rest Controller to process HTTP requests

Related Posts:
Spring Boot + GraphQL example
JPA One To One example with Hibernate in Spring Boot
JPA Many to Many example with Hibernate in Spring Boot
Validate Request Body in Spring Boot
Spring Boot Token based Authentication with Spring Security & JWT
Spring JPA + H2 example
Spring JPA + MySQL example
Spring JPA + PostgreSQL example
Spring JPA + Oracle example
Spring JPA + SQL Server example
– Documentation: Spring Boot Swagger 3 example
– Caching: Spring Boot Redis Cache example

Read More

Typescript ORM with Postgres example

Sequelize is a promise-based Node.js ORM that supports the dialects for Postgres, MySQL, SQL Server… Using an ORM can simplify database interactions, improve code maintainability, and speed up development by providing an object-oriented approach to working with relational databases. In this tutorial, I will show you step by step to implement CRUD operations using Typescript ORM with Postgres example.

You should install Postgres in your machine first.

Working with following front-end:
Angular 8 / Angular 10 / Angular 11 / Angular 12 / Angular 13 / Angular 14 / Angular 15 / Angular 16
Vue 2 Typescript / Vue 3 Typescript
React Typescript Component / React Typescript Hooks

Related Posts:
Express Typescript example
– Security: Node.js JWT Authentication with PostgreSQL example
– Dockerize: Docker Compose Nodejs and Postgres example

Read More

Angular 16 + Node.js Express + PostgreSQL example: CRUD App

In this tutorial, I will show you how to build a full-stack (Angular 16 + Node.js + Express + PostgreSQL) example with a CRUD Application. The back-end server uses Node.js + Express for REST APIs, front-end side is an Angular App with HttpClient and Router.

Related Posts:
Server side Pagination with Node.js and Angular
File Upload using Angular and Node.js
Angular 16 + Node.js Express: JWT Authentication & Authorization example

Run both projects in one place:
How to Integrate Angular with Node.js Restful Services

Serverless with Firebase:
Angular 16 Firebase Database CRUD example
Angular 16 Firestore CRUD example

Read More

Angular 16 + Spring Boot + PostgreSQL example: CRUD App

In this tutorial, we will learn how to build a full stack Angular 16 + Spring Boot + PostgreSQL example with a CRUD App. The back-end server uses Spring Boot with Spring Web MVC for REST Controller and Spring Data JPA for interacting with PostgreSQL database. Front-end side is made with Angular 16, HttpClient, Router and Bootstrap 4.

Security: Angular 16 + Spring Boot: JWT Authentication example
Upload: Angular 16 + Spring Boot: File upload/download example
Pagination: Angular + Spring Boot: Pagination example

Read More

Spring Boot R2DBC + PostgreSQL example

In this tutorial, we’re gonna build a Spring Boot R2DBC example – CRUD application with PostgreSQL Database using Spring Data Reactive (R2DBC) and WebFlux for REST API. You’ll know:

  • How to configure Spring Data Reactive, R2DBC to work with PostgreSQL Database
  • How to define Data Models and Repository interfaces
  • Way to create Spring Rest Controller to process HTTP requests
  • Way to use Spring Data R2DBC to interact with PostgreSQL Database

More Practice:
Spring Boot + GraphQL + PostgreSQL example
Spring WebFlux File upload example
Spring Boot R2DBC + H2 example
Spring Boot R2DBC + MySQL example
Spring Boot Thymeleaf CRUD example
Secure Spring Boot App with Spring Security & JWT Authentication
Spring Boot Rest XML example – Web service with XML Response
Spring Boot Multipart File upload example
Spring Boot Pagination and Sorting example
– Dockerize: Docker Compose: Spring Boot and Postgres example

Associations:
Spring Boot One To One example with JPA, Hibernate
Spring Boot One To Many example with JPA, Hibernate
Spring Boot Many to Many example with JPA, Hibernate

Fullstack:
Vue + Spring Boot + PostgreSQL example
Angular 8 + Spring Boot + PostgreSQL example
Angular 10 + Spring Boot + PostgreSQL example
Angular 11 + Spring Boot + PostgreSQL example
Angular 12 + Spring Boot + PostgreSQL example
Angular 13 + Spring Boot + PostgreSQL example
Angular 14 + Spring Boot + PostgreSQL example
Angular 15 + Spring Boot + PostgreSQL example
Angular 16 + Spring Boot + PostgreSQL example
React + Spring Boot + PostgreSQL example

Read More