From 3132e029017888a66c1af4aad4a01a94266f0ee9 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 5 Jun 2024 15:34:04 +0200 Subject: [PATCH] Polishing. Enusre same annotation order. See #3499 --- .../jpa/repository/support/SimpleJpaRepository.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java b/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java index 50afeee8a5..bb7f7ee334 100644 --- a/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java +++ b/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java @@ -618,8 +618,8 @@ public long count(@Nullable Specification spec) { return executeCountQuery(getCountQuery(spec, getDomainClass())); } - @Transactional @Override + @Transactional public S save(S entity) { Assert.notNull(entity, "Entity must not be null"); @@ -632,8 +632,8 @@ public S save(S entity) { } } - @Transactional @Override + @Transactional public S saveAndFlush(S entity) { S result = save(entity); @@ -642,8 +642,8 @@ public S saveAndFlush(S entity) { return result; } - @Transactional @Override + @Transactional public List saveAll(Iterable entities) { Assert.notNull(entities, "Entities must not be null"); @@ -657,8 +657,8 @@ public List saveAll(Iterable entities) { return result; } - @Transactional @Override + @Transactional public List saveAllAndFlush(Iterable entities) { List result = saveAll(entities); @@ -667,8 +667,8 @@ public List saveAllAndFlush(Iterable entities) { return result; } - @Transactional @Override + @Transactional public void flush() { entityManager.flush(); }