/
UserDepartmentCompanyDomain.java
72 lines (51 loc) · 1.25 KB
/
UserDepartmentCompanyDomain.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* Copyright (c) 2010 Mysema Ltd.
* All rights reserved.
*
*/
package com.mysema.rdfbean.domains;
import com.mysema.rdfbean.annotations.ClassMapping;
import com.mysema.rdfbean.annotations.Id;
import com.mysema.rdfbean.annotations.Predicate;
import com.mysema.rdfbean.model.IDType;
public interface UserDepartmentCompanyDomain {
@ClassMapping
public static class User {
@Id(IDType.LOCAL)
public String id;
@Predicate
public Department department;
@Predicate
public String userName;
public String getId() {
return id;
}
public Department getDepartment() {
return department;
}
public String getUserName() {
return userName;
}
}
@ClassMapping
public static class Department {
@Id(IDType.LOCAL)
public String id;
@Predicate
public Company company;
public String getId() {
return id;
}
public Company getCompany() {
return company;
}
}
@ClassMapping
public static class Company {
@Id(IDType.LOCAL)
public String id;
public String getId() {
return id;
}
}
}