db.news.Tag Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package db.news;
import db.GraphEntity;
import org.neo4j.ogm.annotation.Index;
import org.neo4j.ogm.annotation.NodeEntity;
/**
*
* @author zua
*/
@NodeEntity
public class Tag extends GraphEntity {
private static final long serialVersionUID = -2218568840405529695L;
@Index(unique = true, primary = true)
private String tag;
public Tag() {
}
public Tag(String category) {
this.tag = category;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy