Skip to content

Hiding where the data lives

Business logic calls a StudentRepository with methods like findByCollege, rather than writing SQL directly.

What is the main gain?