Jpa and Spring Security integration