Posts by Danilo Pereira • 1 point
2 posts
-
0
votes1
answer473
viewsA: Save an object with a list using Spring Crudrepository
You can use this approach with Hibernate: https://www.baeldung.com/hibernate-one-to-many mapping relationships directly on the interface and setting up the.…
-
-1
votes1
answer277
viewsA: commit with the @Transactional annotation in Spring
You can extract the behavior that is inside the for for a method and annotate this new method with @Transaction, so it will respect the transaction handled there first.