Skip to content
Snippets Groups Projects
  • Eike Cochu's avatar
    9e9dbf2f
    removed ws stuff, unused · 9e9dbf2f
    Eike Cochu authored
    animating explorer sidebar valuebars
    fixed chart rendering when reloading page
    fixed topic word sorting in article show
    added index redirect on topic model change in id-loaded pages
    removed put/post methods from resources
    added put method to topic resource for renaming only
    9e9dbf2f
    History
    removed ws stuff, unused
    Eike Cochu authored
    animating explorer sidebar valuebars
    fixed chart rendering when reloading page
    fixed topic word sorting in article show
    added index redirect on topic model change in id-loaded pages
    removed put/post methods from resources
    added put method to topic resource for renaming only
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
TopicModel.java 760 B
package de.vipra.util.model;

import java.io.Serializable;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
@SuppressWarnings("serial")
@Entity(value = "topicmodels", noClassnameStored = true)
public class TopicModel implements Model<String>, Comparable<TopicModel>, Serializable {

	@Id
	private String id;

	public TopicModel() {}

	public TopicModel(final String id) {
		this.id = id;
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(final String id) {
		this.id = id;
	}

	@Override
	public int compareTo(final TopicModel o) {
		return id.compareTo(o.getId());
	};

}