JavaIntermediate#jpa

What is JPA vs Hibernate?

JPA is a specification (interfaces, annotations). Hibernate is the most popular implementation. JPA gives portability; Hibernate adds extra features like caching and HQL.

Example
@Entity
class User {
  @Id @GeneratedValue Long id;
  String name;
} // JPA annotations; Hibernate is the JPA provider that generates the SQL

Related Questions

1
JavaIntermediate#fundamentals

What is the difference between == and .equals() for Integer in Java?

Open
2
JavaBeginner#fundamentals

What are Java's primitive data types?

Open
3
JavaIntermediate#fundamentals

What is the difference between pass-by-value and pass-by-reference in Java?

Open