Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. @Service
  2. @Transactional
  3. public
  4. class InitService
  5. {
  6.  
  7. private final static
  8. Logger LOG = getLogger(InitService.class);
  9. @Autowired
  10. private
  11. BankPreferencesRepository bankPreferencesRepository;
  12. @PostConstruct
  13. @Loggable
  14. @Transactional
  15. public
  16. void initDB()
  17. {
  18. if (payDoNotificationPreferencesRepository.count() == 0) {
  19. // fai le insert tramite repository}
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement