Failed to initialize JPA EntityManagerFactory: Property ” is not a collection and may not be a ‘@OneToMany’, ‘@ManyToMany’, or ‘@ElementCollection’
I’m trying to create a system to help manage company I’m in. One of the module is ticketing problems. Previously I was using nonSQL DB but decided to learn something new. I’m not sure if it’s a problem with classes or just wrong sql model. I want users to be able to create Tickets and be able to Comment them. But all I got is errors.
I have:
User.java
NonUniqueResultException: query did not return a unique result: 2 error when returning attributes for collection of items in DB
I am trying to read a set of answers that a user submits to a database. The table has the following columns: PKid, clientId, questionId, answer, archived. Client submissions populate in this manner to decrease the footprint of what would otherwise be a very large table:
NonUniqueResultException: query did not return a unique result: 2 error when returning attributes for collection of items in DB
I am trying to read a set of answers that a user submits to a database. The table has the following columns: PKid, clientId, questionId, answer, archived. Client submissions populate in this manner to decrease the footprint of what would otherwise be a very large table:
Spring JPA filtration and setting
New to java development. Using Spring Boot and Spring JPA to develop a web app.
How get spring data jpa repositoy to use a dynamically set datasource
I have a spring boot project where I have to process files. According to a specific number in the filename the following actions (e.g. persisting some data) will rely on a certain database schema. There are around 100 schemas to fill.
How to create a custom Id in spring boot and save into database?
The patient registration class has patient id which is unique. the id should be like – P2024070280001, P is prefix, 2024 is the current year, 07 means the current month, 028 means that specific day, 0001 means the serial, first patient of that day.
Memory Leak while persisting bulk data
I am importing a lot of data from a csv, transform it to list of objects and write it to the database. This is working fine but it seems to have a memory leak.
How to handle multiple concurrent user request for download 1million records api using spring boot
How to handle multiple concurrent user request for download 1million records api using spring boot ? its give time out.Timeout and database pool issue i already gives 10 pool size timeout 30000. my api response time 9 to 10s. ——————————————————————————————–
How to implement RFC2616-14.35.2 Range Headers pagination for Spring Boot controller and entity repository?
I need to implement RFC2616-14.35.2 Range Headers pagination for my project.
It seems that no implementation is available for Spring Boot natively nor through an external dependency.
java.lang.IllegalArgumentException: Could not find class [org.springframework.jdbc.core.simple.JdbcClient]
Trying to upgrade Spring Boot 3.0.0 to 3.3.0, I get this error when using mvn spring-boot:run :
java.lang.IllegalArgumentException: Could not find class [org.springframework.jdbc.core.simple.JdbcClient]