Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Service
- @Transactional
- public
- class InitService
- {
- private final static
- Logger LOG = getLogger(InitService.class);
- @Autowired
- private
- BankPreferencesRepository bankPreferencesRepository;
- @PostConstruct
- @Loggable
- @Transactional
- public
- void initDB()
- {
- if (payDoNotificationPreferencesRepository.count() == 0) {
- // fai le insert tramite repository}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement