Postgresql – Spring JPA not deleting entity
When I try to delete a review nothing is deleted and nothing is thrown. I already tried changing some of the cascade types but at the moment I can't figure out what the problem is. At first I was using…
When I try to delete a review nothing is deleted and nothing is thrown. I already tried changing some of the cascade types but at the moment I can't figure out what the problem is. At first I was using…
I using Spring Boot to build Restful API. Anything work so good. But, when i try create new Discuss by POST request in Postman. I've received error: "Failed to convert property value of type 'java.lang.String' to required type 'com.nd2.assignwork.entity.UserAccountEntity' for…
So for one of my university assignments we've been tasking with creating a CRUD api using a framework of our choice, i went with spring boot, as an additional requirement it must also be in a container using docker. To…
I have a project with spring boot starter validations and recently added the driver to connect to a postgres database and the ddl-auto=create. When the application starts it is not able to create my table. I have two models with…
When I try to run my Spring Boot app using IntelliJ IDE, everything builds properly and no warning and errors are show. Once the app starts running the following runtime exception occurs: Can't start redis server. Check logs for details.…
While building the project getting below error: error: package org.cache2k.integration does not exist import org.cache2k.integration.CacheLoader; Screenshot of error Setup details under build.gradle file: targetCompatibility = '17' sourceCompatibility = '17' plugins { id 'java' id 'org.springframework.boot' version '3.1.2' apply false id…
I have a jsonb column which has 'created' property and stores timestamp string. I'm able to query in query editor, but I can't perform the same using Spring Data JPA with nativeQuery as true. Here is what I'm trying to…
Deserialisation should fail for the following POJO if the json has an additional field, as the Jackson documentation says FAIL_ON_UKNOWN_PROPERTIES is set by default. @Getter @Setter @FieldNameConstants @ToString @Builder @Document(collection = "form_layouts") @EqualsAndHashCode(callSuper = true, onlyExplicitlyIncluded = true) @Jacksonized public…
I am trying to play with SpringBoot Native image complication. gradle bootBuildImage - Generated Docker Image But running the docker image fails to initialize the Oracle JDBC driver. Any thoughts? Here is the console log 2023-10-06T16:42:20.006Z INFO 1 --- […
I already have a table (group_relation) with auto incremented integer as Primary Key and want to add a new table (relation_app) map to it. spring-boot = 2.7.14 MySQL = 8 MYSQL DDL CREATE TABLE group_relation ( relation_id int NOT NULL…