Project

General

Profile

« Previous | Next » 

Revision 27713

added relations to vocabulary terms (server side)

View differences:

Vocabulary.java
4 4
import lombok.Data;
5 5
import lombok.NoArgsConstructor;
6 6

  
7

  
7 8
@Data
8 9
@AllArgsConstructor
9 10
@NoArgsConstructor
10
public class Vocabulary {
11
public class Vocabulary implements Comparable<Vocabulary> {
11 12
	private String id;
12 13
	private String name;
13 14
	private String description;
14 15
	private String code;
16
	
17
	@Override
18
	public int compareTo(Vocabulary o) {
19
		return name.compareTo(o.getName());
20
	}
15 21
}

Also available in: Unified diff