I need to write the following SQL code in Hibernate criteria query: The only showstopper in this case is the subquery with selection of 2 columns a ...
I need to write the following SQL code in Hibernate criteria query: The only showstopper in this case is the subquery with selection of 2 columns a ...
I am attempting to insert ~57,000 entities in my database, but the insert method takes longer and longer as the loop progresses. I have implemented ba ...
When I try to select all details of my database, I don't get data s into a table structure in my jsp page. The array is printed in my jsp but don't kn ...
Say I have a unidirectional @ManyToOne relationship like the following: I want to update the user entity's 'someProperty' whenever I update BugTick ...
My DB has 'm_date' which is of string type and stores dates as "dd-MM-yyyy" format. Now I want to fetch the records from the table with the help of th ...
When loading entity not fully with specification and entity graph in repository query, the data were cached. But only when method is called over REST ...
Data domain (kind of email model) : (@ManyToOne and OneToMany are bi-directionals) My goal is to do : I want of course to avoid the N+1 problem ...
I have a requirement like one API REST endpoint which will be connected to 3 databases. In this API, three service implementations, each service will ...
In a application, having a database table CUSTOMERS defined as: and the Entity classes are created to populate the data as The records are popul ...
I have a strange error when running tests in SpringBoot using JPA to interact with a postgresql database. A test class successfully inserts an entity ...
I'm using JPA2 Criteria API with Hibernate. The simplified database schema is as follows Corresponding OrderItem and OrderTransaction have @ManyToO ...
I have a one-to-many relationship between two entities Order and LineItem. I also have a parent to Order entity which is Customer and Customer to Orde ...
I'm rewriting some XML configurations to entity classes and I'm experiencing problems with hibernate generated tables. This is my original XML config ...
I'm currently implementing JPA persistence with Spring Data and I'm not able to solve the following problem so far: The problem I have an @Entity En ...
how to write jpa query for below sql without using native sql query select * from emp where emp_id=123 and (emp_name="ABC" OR emp_name is NULL) order ...
I have two tables Users and UserRoles. These are the entity class I have created, Repository Class, For this I am able to get Json result like t ...
query : update Order set f='1' where key in (1,2,3,4,5) I wonder what happens if I work as above. ...
I have a requirement to form a query using JPA as; Where child table is OneToMany relation to its parent. Using JPA Spec API I have added below Pr ...
Deep diving into Spring JPA and I have troubles to understand whats going on here. This is the code: Entity SpringBootApp By starting the app, ...
I am trying to develop an app with a database and i got lots of error like java.lang.IllegalArgumentException: Unsupported class file major version 61 ...