Spring-Data-JPA-Relationships icon indicating copy to clipboard operation
Spring-Data-JPA-Relationships copied to clipboard

Upgraded to Java 17, Spring Boot 3, Added PostgreSQL database and Symmetric key encryption

Open kavindukalinga opened this issue 1 year ago • 0 comments

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+"')"
    )

kavindukalinga avatar May 15 '24 11:05 kavindukalinga