1 | public class Backref extends Property {↵ | | 1 | public class IndexBackref extends Property {↵
|
2 | private String collectionRole;↵ | | 2 | private String collectionRole;↵
|
3 | private String entityName;↵ | | 3 | private String entityName;↵
|
4 | ↵ | | 4 | ↵
|
5 | public boolean isBackRef() {↵ | | 5 | public boolean isBackRef() {↵
|
6 | return true;↵ | | 6 | return true;↵
|
7 | }↵ | | 7 | }↵
|
8 | public String getCollectionRole() {↵ | | 8 | public String getCollectionRole() {↵
|
9 | return collectionRole;↵ | | 9 | return collectionRole;↵
|
10 | }↵ | | 10 | }↵
|
11 | public void setCollectionRole(String collectionRole) {↵ | | 11 | public void setCollectionRole(String collectionRole) {↵
|
12 | this.collectionRole = collectionRole;↵ | | 12 | this.collectionRole = collectionRole;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public boolean isBasicPropertyAccessor() {↵ | | 14 | public boolean isBasicPropertyAccessor() {↵
|
15 | return false;↵ | | 15 | return false;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public PropertyAccessor getPropertyAccessor(Class clazz) {↵ | | 17 | public PropertyAccessor getPropertyAccessor(Class clazz) {↵
|
18 | return new BackrefPropertyAccessor(collectionRole, entityName);↵ | | 18 | return new IndexPropertyAccessor(collectionRole, entityName);↵
|
19 | }↵ | | 19 | }↵
|
20 | ↵ | | 20 | ↵
|
21 | public String getEntityName() {↵ | | 21 | public String getEntityName() {↵
|
22 | return entityName;↵ | | 22 | return entityName;↵
|
23 | }↵ | | 23 | }↵
|
24 | public void setEntityName(String entityName) {↵ | | 24 | public void setEntityName(String entityName) {↵
|
25 | this.entityName = entityName;↵ | | 25 | this.entityName = entityName;↵
|
26 | | | 26 |
|