Rev 33 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 33 | Rev 34 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | 0); |
43 | 0); |
44 | private Set<Relationship> relationshipsForTermFrom = new HashSet<Relationship>( |
44 | private Set<Relationship> relationshipsForTermFrom = new HashSet<Relationship>( |
45 | 0); |
45 | 0); |
46 | 46 | ||
47 | /**
|
47 | /**
|
- | 48 | * @var <code>true</code> if the term is edited/renamed, <code>false</code>
|
|
- | 49 | * otherwise
|
|
- | 50 | */
|
|
- | 51 | public boolean edit = false; |
|
- | 52 | ||
- | 53 | /**
|
|
48 | * No-op constructor
|
54 | * No-op constructor
|
49 | */
|
55 | */
|
50 | public Term() |
56 | public Term() |
51 | {
|
57 | {
|
52 | }
|
58 | }
|
Line 128... | Line 134... | ||
128 | public void setName(String name) |
134 | public void setName(String name) |
129 | {
|
135 | {
|
130 | this.name = name; |
136 | this.name = name; |
131 | }
|
137 | }
|
132 | 138 | ||
133 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "termByTermTo") |
139 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "termTo") |
134 | public Set<Relationship> getRelationshipsForTermTo() |
140 | public Set<Relationship> getRelationshipsForTermTo() |
135 | {
|
141 | {
|
136 | return this.relationshipsForTermTo; |
142 | return this.relationshipsForTermTo; |
137 | }
|
143 | }
|
138 | 144 | ||
Line 145... | Line 151... | ||
145 | }
|
151 | }
|
146 | 152 | ||
147 | /**
|
153 | /**
|
148 | * @return
|
154 | * @return
|
149 | */
|
155 | */
|
150 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "termByTermFrom") |
156 | @OneToMany(fetch = FetchType.LAZY, mappedBy = "termFrom") |
151 | public Set<Relationship> getRelationshipsForTermFrom() |
157 | public Set<Relationship> getRelationshipsForTermFrom() |
152 | {
|
158 | {
|
153 | return this.relationshipsForTermFrom; |
159 | return this.relationshipsForTermFrom; |
154 | }
|
160 | }
|
155 | 161 |