JPA and JDBC are the two main choices when it comes to working with relational data from a Java application.