Spent 2 hours on this today. My service method throws a custom checked exception after saving an entity, an…
Dhruv Joshi
Software Developer | Java, Spring Boot, React | Learning system design one outage at a time
Spent 2 hours on this today. My service method throws a custom checked exception after saving an entity, and the save is NOT rolled back.
```java
@Transactional
public void createInvoice(...) throws InvoiceException {
repo.save(invoice);
if (bad) throw new InvoiceException("...");
}
```
Is this expected? Feels like a bug.
7 reactions3 comments
