Skip to main content
Best practices
0 votes
4 replies
93 views

I worked on a performance improvement of importing large dataset in SpringBoot JPA. I Implemented batching of the records that I am saving to database and flushing and clearing the entity manager on ...
Abhishek Saxena's user avatar
0 votes
1 answer
61 views

I am querying with 1000 entities at a time (bulk) and some of them are insert queries and some are update queries. I want to find which entity I query with is the update query and create a list of ...
Mert Karagöz's user avatar
0 votes
1 answer
107 views

I have a Java project, let's call it 'magical' which defines some JPA entities, and manipulates them vía some services using Eclipselink. One of those entities is the entity User.java. So, the '...
imnotthatrobot's user avatar
0 votes
0 answers
72 views

I am encountering a puzzling issue in Hibernate (with PostgreSQL backend) and would appreciate confirmation or correction of my understanding. Context: I have a method that runs a couple of scalar ...
TechniQ3's user avatar
0 votes
1 answer
62 views

We have two JPA entities, let's call them 'C' and 'P'. These Entities have a one-to-one optional relationship based on their primary keys. That is, Entity 'P' can exist without a related Entity 'C', ...
DuncanKinnear's user avatar
1 vote
1 answer
151 views

I've got a Java app that uses an EntityManager to query an Oracle database and populate a simple DTO class. This works fine for varchars and strings - but throws an error: Could not determine ...
Tim's user avatar
  • 867
3 votes
0 answers
331 views

I'm trying to increase the timeout of a transaction in a Java Quarkus application. I already found some old answered questions, but none of them is working for me. The solution that's also mentioned ...
med.b's user avatar
  • 525
1 vote
0 answers
95 views

I am running a JSR-352 batch job (concretely, Apache JBatch as implementation) in a JEE environment (WebSphere with EclipseLink as the JPA provider). The batch processes database records in chunks and ...
hakson's user avatar
  • 156
0 votes
1 answer
107 views

I want to create a integration test against a database and clean it up afterwards in an wildfly/arquillian environment. But when I try to execute the Test I get a Could not create new instance of ...
OhJohnny's user avatar
  • 351
0 votes
1 answer
93 views

I used EntityManager to do some custom queries, but I encountered some issues. Firstly, I defined entityManager as a singleton bean, @Configuration public class PrimaryJpaConfig { @Primary @...
Adrian ZOU -SHANGHAI PRODUCTIO's user avatar
0 votes
1 answer
64 views

does spring data JPA bound entity manager to the current thread or the transaction? Say I have a method annotated with @Transactional that is called all the time. Does spring uses the entity manager ...
user1409534's user avatar
  • 2,314
2 votes
1 answer
68 views

In my Java Application I need to use a connection pool, so I decided to implement HibernateCP. The problem is that I get this exception that I need to add this: org/slf4j/LoggerFactory. The full ...
user avatar
2 votes
1 answer
92 views

I used hibernate EntityManager on standalone application (Without framework) . this is my pom.xml : <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven....
mah454's user avatar
  • 1,948
2 votes
0 answers
78 views

I’m having an issue with a Hibernate query where I need to use a PESSIMISTIC_WRITE lock. The lock works fine in concurrent transactions, but the information returned by the query is outdated. To ...
Bruno Fonseca's user avatar
1 vote
1 answer
3k views

I am using JPQL and projecting the specific returned fields into a different Class than the Entity. I can achieve it using at least the following 2 ways in JPQL with EntityManger (em in code):- @Test ...
Sidharth Bajpai's user avatar

15 30 50 per page
1
2 3 4 5
122