db.relationships.TaggedSourceAs 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.relationships;
import db.GraphEntity;
import db.news.NewsSource;
import db.news.Tag;
import org.neo4j.ogm.annotation.EndNode;
import org.neo4j.ogm.annotation.RelationshipEntity;
import org.neo4j.ogm.annotation.StartNode;
/**
*
* @author zua
*/
@RelationshipEntity(type = "TAGGED_AS")
public class TaggedSourceAs extends GraphEntity {
private static final long serialVersionUID = 7786453007625414455L;
@StartNode
private NewsSource source;
@EndNode
private Tag tag;
public NewsSource getSource() {
return source;
}
public void setSource(NewsSource source) {
this.source = source;
this.source.setCategory(this);
}
public Tag getTag() {
return tag;
}
public void setTag(Tag tag) {
this.tag = tag;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy