Wells Fargo interview question

How does JPA connect to database?