Skip to content

Tag: postgresql

Data type is not updating on Database

In my entity class, I want to change the data type of a field but it’s not updating in the database. I am using PostgreSQL. I have also tried adding this: in application properties and still, it doesn’t work I don’t know why, please help, and thanks. What I have : Answer If you just created …

Find date inside each month

In my project, in the repository, this select finds the nearest date with a currency id that is less than or equal to the date whose range I set. How can I find a date in each month that is greater than or equal to the date I want to bind, but with the condition that this date must be

PostgreSQL’s JSONB data type with Hibernate: Error creating bean with name ‘entityManagerFactory’ defined in class path resource-Unable to load class

Now I learn about nested jsons and geojson and how to save them in PostgreSQL as JsonB directly in database and before starting. Inspiration source: https://thorben-janssen.com/persist-postgresqls-jsonb-data-type-hibernate/ Error I get when running the app: Here is the Main Entity: Here is the geojson(nested …