Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class CompanyProjection {
  2. String name;
  3. List<Employee> employees;
  4.  
  5. public CompanyProjection (String name, List<Employee> employees) {
  6. ...
  7. }
  8. }
  9.  
  10. class Company {
  11. String name;
  12.  
  13. @OneToMany(mappedBy = "company")
  14. List<Employee> employees;
  15. }
  16.  
  17. class Employee {
  18. @ManyToOne
  19. Company company;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement