1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.core.persistence.jpa.entity;
20
21 import javax.persistence.Cacheable;
22 import javax.persistence.Entity;
23 import javax.persistence.Table;
24 import org.apache.syncope.core.persistence.api.entity.RelationshipType;
25 import org.apache.syncope.core.persistence.jpa.validation.entity.RelationshipTypeCheck;
26
27 @Entity
28 @Table(name = JPARelationshipType.TABLE)
29 @RelationshipTypeCheck
30 @Cacheable
31 public class JPARelationshipType extends AbstractProvidedKeyEntity implements RelationshipType {
32
33 private static final long serialVersionUID = -753673974614737065L;
34
35 public static final String TABLE = "RelationshipType";
36
37 private String description;
38
39 @Override
40 public String getDescription() {
41 return description;
42 }
43
44 @Override
45 public void setDescription(final String description) {
46 this.description = description;
47 }
48 }