Jakarta Persistence Query Language: Difference between revisions

Content deleted Content added
m Reverting possible vandalism by 203.145.141.38 to version by 92.144.85.52. False positive? Report it. Thanks, ClueBot NG. (1181520) (Bot)
Line 28:
 
==Examples==
Suppose we have JPA entity classes defined like this (getter and setter methods omitted for simplicity):
 
<source lang="java">
@Entity
public class Author {
@Id
private Integer id;
private String firstName;
private String lastName;
@ManyToMany
private List<Book> books;
}
 
@Entity