Open in app

Sign In

Write

Sign In

Tom Liu
Tom Liu

13 Followers

Home

About

Feb 8

Spring Data JPA: insert or update

If you are reading this article, you must have noticed that by default, the save() method from JpaRepository interface saves the DB entity regardless whether the row exists or not. This is very convenient, but it also cause a problem in some scenarios. Sometimes, when we insert a new row…

Spring Data Jpa

3 min read

Spring Data Jpa

3 min read


Nov 13, 2021

Spring Boot Test

This Spring Boot Test example is to test the Spring Boot application created in this story. In the project created in the aforementioned story, modify the Bazel WORKSPACE to add the test dependencies: ...... maven_install( artifacts = [ ...... # test "org.springframework:spring-test:5.2.13.RELEASE"…

Spring Boot

3 min read

Spring Boot

3 min read


Nov 5, 2021

OpenAPI, Code Generation, Bazel, and Spring Boot

Once upon a time, people used Spring Boot and Bazel to build web application REST API that uses HTTP, JSON, and you know …. OpenAPI There was an OpenAPI as a standard to define the REST API spec. People edit the OpenAPI spec by using a swagger editor here. One day…

Spring Boot

7 min read

OpenAPI, Code Generation, Bazel, and Spring Boot
OpenAPI, Code Generation, Bazel, and Spring Boot
Spring Boot

7 min read


Mar 18, 2021

React use case: reset state of the child function component from the parent component

A very simple use case in React, but I didn’t find any article that gives a clean answer — maybe I didn’t read enough. Here is the situation: You have a big form to implement. You put the different sections of the form into different React function components. The form…

2 min read

2 min read


Jun 2, 2020

Have a good ReSTful API

Software architecture evolves fast. It has been a while that ReSTful API backend + JSON becomes an industry standard for web application with Javascript frontend. ReSTful API is a cross-platform solution by design and by nature. Of cause, besides web application, ReSTful API can also be applied to any place…

8 min read

8 min read


Aug 9, 2018

Angular 4+, Empower Dynamic Form, Part 2: Make It Better

We had a simple yet good start on dynamic form in the part one of Empower Dynamic Form. We made it work. Now, we need to make it better (much better). I reckon CSS is either too simple or too boring for us. Imagine that you spend hours playing on…

Angular

8 min read

Angular 4+, Empower Dynamic Form, Part 2: Make It Better
Angular 4+, Empower Dynamic Form, Part 2: Make It Better
Angular

8 min read


Jul 29, 2018

Angular 4+, Empower Dynamic Form, Part 1: A Simple One

Here you are. Since you are here, I assume you know some about Angular, typescript, javascript, html etc. So, let’s start right from the Angular dynamic form. According to the description from this page, dynamic form is superb, and can do all that static form is capable of. It probably…

Typescript

11 min read

Angular 4+, Empower Dynamic Form, Part 1: A Simple One
Angular 4+, Empower Dynamic Form, Part 1: A Simple One
Typescript

11 min read

Tom Liu

Tom Liu

13 Followers

Life is beautiful…

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams