Skip to content

Instantly share code, notes, and snippets.

View Edijun's full-sized avatar

Edi Djunaidi Edijun

View GitHub Profile
-- Table: public.product
-- DROP TABLE public.product;
CREATE TABLE public.product
(
id character varying(10) COLLATE pg_catalog."default" NOT NULL,
name character varying(50) COLLATE pg_catalog."default",
price integer,
description character varying(100) COLLATE pg_catalog."default",
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url =
spring.datasource.username =
spring.datasource.password =
spring.datasource.platform = postgres
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQL94Dialect
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url =
spring.datasource.username =
spring.datasource.password =
spring.datasource.platform = postgres
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQL94Dialect
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true