I already cleared all entities with a constraint key within the same transaction, but I’m getting a constraint key error
This is the code for clearing my user.
Jpa query much slower with VPS DB compared to local DB
List<UserAttempt> findAllByAssignmentIdInAndIsLatest(List<Long> assignmentIds, Boolean isLatest); jpa query when i am calling it through local server and to local DB with same data as VPS taking 400 ms but when my server connected to vps calling it ,it is taking 6 sec+. java spring spring-data-jpa
How to Force Hibernate Dialect to Expose SQL Server Connection Errors in Spring Boot
When the service starts, if the SQL server is unreachable, I get the following error:
java.lang.NoSuchMethodError after uplifting Spring data JPA jars to v3.3.0
after I uplifted spring data jpa and commons jar to version 3.3.0 of our product, I got this error.
How to implement sorting in Spring boot application
I have a controller that accepts optional parameters “sort” and “order”. If this params is not passed, I need to sort results from database by 2 columns, “firstName” and “lastName” DESC.
How to implement this logic? The example will be perfect.
DB is postgresql.
Spring JPA – How to reload Parent and its Child entities after saving them within the same transaction
In my service class I’m trying to update an entity(and its many children) and want to use the updated record in the same transaction. Data is being updated in the table but context is not being updated even after calling EntityManager's
flush(), clear() or refresh().
java.lang.StackOverflowError: null when displaying a table with its dependencies
I have 3 tables connected to each other. And when I try to display a table with its dependencies, I get an error java.lang.StackOverflowError: null
Register specific queries, why JPA see r and R as a one character
I have an entity Team with field String name
In my service i try to rename the teams, if there is already a team with that name i just throw an exception AlreadyExists. The problem is that when I try to rename team named Clear to CleaR JPA method findByName finds by name ‘CleaR’ this team ‘Clear’ (so i can;t rename it)
This issue acquires only with letter R, others are ok