wiring orm to spring-security