Merge pull request #15787 from eukovko/BAEL-7452-Transactional-annotations

BAEL-7452: Added transactional annotations to GroupService
This commit is contained in:
Ulisses Lima 2024-02-07 14:15:03 -03:00 committed by GitHub
commit f386325a94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -4,8 +4,10 @@ import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
public class GroupService {
private final GroupRepository groupRepository;

View File

@ -4,8 +4,10 @@ import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
public class GroupService {
private final GroupRepository groupRepository;

View File

@ -4,8 +4,10 @@ import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
public class GroupService {
private final GroupRepository groupRepository;
@ -27,3 +29,4 @@ public class GroupService {
groupRepository.save(group);
}
}