Spring-Data-JPA-Relationships
Spring-Data-JPA-Relationships copied to clipboard
Upgraded to Java 17, Spring Boot 3, Added PostgreSQL database and Symmetric key encryption
Here, upgraded to Java 17 and Spring Boot 3.2.5
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.5</version>
<properties>
<java.version>17</java.version>
</properties>
And connected PostgreSQL database;
spring.datasource.url=jdbc:postgresql://localhost:5436/student
And added Symmetric key encryption using pg-crypto and Column transformer
@ColumnTransformer(
read = "PGP_SYM_DECRYPT(name,'"+symkey+"')",
write = "PGP_SYM_ENCRYPT (?, '"+symkey+"')"
)