Spring data & JPA learning notes
jpa:Java Persistence api is a specification, and hibernate is its implementation. jpql/hql: query language. jpql is a subset of hql. 1. Basic usage and annotation explanation @MappedSuperclass 1. The class marked @ MappedSuperclass will not be a complete entity class. It will not be mapped to the database table, but its properties will be mappe ...
Posted by Aliz on Tue, 18 Jan 2022 22:52:29 +0100
Spring Data JPA from getting started to mastering ~@ Version to deal with optimistic locks
@Version handles optimistic locks
@Introduction to Version lock
When studying Auditing, we found an interesting annotation @ Version. The source code is as follows:
package org.springframework.data.annotation;
/**
* Demarcates a property to be used as version field to implement optimistic locking on entities.
*/
@Retention(RUNTIME)
@Target ...
Posted by neorunner on Sun, 09 Jan 2022 11:10:39 +0100
SpringBoot Fast JPA Integration Completes CRUD
Foreword: When talking about Java Web, many little partners know SSH. This H stands for Hibernate framework, but what is JPA? I believe many beginners have heard about it but are not very clear. First, the full name of JPA is Java Persistence.API, JPA is a standard specification based on O/R mapping. In this specification, JPA only defines stan ...
Posted by jhonrputra on Wed, 22 Sep 2021 19:18:25 +0200