Jakarta Persistence Query Language: Difference between revisions

Content deleted Content added
Line 30:
 
 
@
@Entity
public class Book {
@Id
private Integer id;
private String title;
private String isbn;
@ManyToOne
private Publisher publisher;
@ManyToMany
private List<Author> authors;
}
 
@Entity
public class Publisher {