Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CompanyProjection {
- String name;
- List<Employee> employees;
- public CompanyProjection (String name, List<Employee> employees) {
- ...
- }
- }
- class Company {
- String name;
- @OneToMany(mappedBy = "company")
- List<Employee> employees;
- }
- class Employee {
- @ManyToOne
- Company company;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement