Advertisement
andersonalmada

Untitled

Jul 29th, 2022
985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. @Entity
  2. public class Product {
  3.  
  4.     @Id
  5.     @GeneratedValue
  6.     private int id;
  7.     private String name;
  8.     private double price;
  9.  
  10.     @OneToMany(mappedBy = "product")
  11.     private List<Feedback> feedbacks;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement