Java add javax.persistence in IntelliJ

Viewed 265

I am trying to create a basic Java Spring program. Where do I get javax.persistence? It cannot resolve persistence, and cannot Find JAR on Web after attempting. Currently using IntelliJ .

https://spring.io/guides/tutorials/rest/

package payroll;

import java.util.Objects;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
class Employee {

  private @Id @GeneratedValue Long id;
  private String name;
  private String role;

enter image description here

0 Answers
Related