Hi everbody,
We are building software in java, and are new to it. I confused about JPA. Normally in MVC pattern, SQL queries are hidden in model. And controller can't access the db directly.
When I use JPA, should model retrieve JPA object to controller? If yes, then controller has access to db, and this is against to pattern?