BrightSide Workbench Full Report + Source Code
MatchingEntity.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2020 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.matching;
20 
21 import javax.persistence.Id;
22 import javax.persistence.IdClass;
23 import javax.persistence.MappedSuperclass;
24 
29 @MappedSuperclass
30 @IdClass(MatchingEntityPK.class)
31 public class MatchingEntity implements IMatching {
32 
33  @Id private String entityPath;
34  @Id private String relatedPath;
35  @Id private String concept;
36 
37  private double matching;
38 
39  @Override
40  public String getEntityPath() {
41  return entityPath;
42  }
43 
44  @Override
45  public void setEntityPath(String entityPath) {
46  this.entityPath = entityPath;
47  }
48 
49  @Override
50  public String getRelatedPath() {
51  return relatedPath;
52  }
53 
54  @Override
55  public void setRelatedPath(String relatedPath) {
56  this.relatedPath = relatedPath;
57  }
58 
59  @Override
60  public String getConcept() {
61  return concept;
62  }
63 
64  @Override
65  public void setConcept(String concept) {
66  this.concept = concept;
67  }
68 
69  @Override
70  public double getMatching() {
71  return matching;
72  }
73 
74  @Override
75  public void setMatching(double matching) {
76  this.matching = matching;
77  }
78 
79 }
void setRelatedPath(String relatedPath)
void setMatching(double matching)
void setEntityPath(String entityPath)