entity classes from database. spring security added.