skip to Main Content

Postgresql – Spring JPA with docker compose: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' or 'hibernate.dialect'

I am unable to connect my spring boot application to a PostgreSQL database using Spring JPA. Below is my application.yaml file. spring: application: name: jaah datasource: url: jdbc:postgresql://db:5432/taah username: waah password: blah driverClassName: org.postgresql.Driver jpa: database-platform: org.hibernate.dialect.PostgreSQLDialect hibernate: ddl-auto: update…

VIEW QUESTION

Cannot query Enum with Spring JPA and Postgresql

So i have this ENUM in my PostgreSQL: CREATE TYPE process_status AS ENUM('CREATED','ONGOING','DONE'); ALTER TABLE process ADD status process_status NOT NULL DEFAULT 'CREATED'; In my code: @Getter public enum Status { CREATED("Created"), ONGOING("Ongoing"), DONE("Done"); private final String status; Status(String status)…

VIEW QUESTION
Back To Top
Search