Customize Hibernate configuration to use JPA interfaces. Adjust Spring Security to login user stored in database