Skip to main content
0 votes
0 answers
81 views

In JPA, when an entity is modified inside a transaction (e.g., via a setter), the change is tracked only in the persistence context through dirty checking, and the actual UPDATE SQL is sent to the ...
Jiwon's user avatar
  • 1,246
3 votes
1 answer
544 views

I created a simple application which just sends in a loop messages to Kafka using KafkaTemplate with transaction mode. But, unfortunately, my code doesn't work with @Transactional in the new Spring. I ...
Artyom's user avatar
  • 187
1 vote
1 answer
65 views

I configured a StaxEventItemWriter like this: @Bean public StaxEventItemWriter<Foo> fooWriter() { return new StaxEventItemWriterBuilder<Foo>() .name("fooWriter") ...
Dimitri Mestdagh's user avatar
0 votes
1 answer
78 views

Setup: SpringBoot application using SpringJPA with Hibernate I have two entities: A and B. Set is a child of A. I want to remove a B and create another one in a characteristic which would hit a unique ...
itsfoobar's user avatar
0 votes
0 answers
64 views

I'm trying to test how transaction works, it's a very simple example. Entity class: public class BettingProgram { @Id private int id; @Column(name = "name", nullable = false) private String ...
rux's user avatar
  • 9
0 votes
0 answers
35 views

I have a customer json like below { "id": "id", "name": "full name", "products": [{ "id": "pid1", &...
Krishna Chaitanya's user avatar
2 votes
2 answers
144 views

I’m working on a modular Java application using Spring 5.1.20.RELEASE, where a core module is used by several client-specific instances. Each instance has its own configuration and business rules. In ...
Rodik's user avatar
  • 291
1 vote
0 answers
203 views

How to run Kotlin Coroutines and persist data to database in a transaction? I am trying to create a batch-application which will start x number of processes that do some work. These processes can run ...
jactor-rises's user avatar
  • 3,299
2 votes
0 answers
134 views

recently I have updated spring boot from 3.3.8 to newer version which is 3.4.1 and suddenly I have started to face a lot of new problems with integration tests. Few of them were really easy to adjust, ...
mastach's user avatar
  • 43
0 votes
1 answer
66 views

Is it good practice to achive atomicity by following code. I know 2 phase commit concept, outbox pattern. I don't want to use third party library like Atomiko. @Transactional Public void test ...
Altaf Shaikh's user avatar
0 votes
0 answers
89 views

Post upgrading to spring boot 3.4.3 and batch v5.2.1, getting below error when starting spring boot project: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean ...
mogli5's user avatar
  • 23
2 votes
1 answer
2k views

I don't understand why this is needed now. I can't start my application because I have a service with @Transactional annotation and some methods with @TransactionalEventListener, and everything was ...
Tsyklop's user avatar
  • 503
2 votes
1 answer
307 views

I'm moving an old Java SpringBoot-base application from version 2.x.x to latest v3.4.2. This update forced me to fix several dependencies, in particular: Update Hibernate from v5.x.x to v6.6.8-Final ...
exto's user avatar
  • 43
0 votes
1 answer
88 views

I am trying to upgrade a legacy spring-hibernate (no jpa) project to spring-jpa. The project has some monkeying around datasource, transactionManager generation etc.., basically we are generating all ...
Olgun Kaya's user avatar
  • 2,585
0 votes
1 answer
152 views

I have an issue when two threads try to create an entity in my database. The first thread checks if the object exists, sees that it is not there, and then creates it. However, at the same time, the ...
magnetiktank's user avatar

15 30 50 per page
1
2 3 4 5
134