@NodeEntity(label = "artifact")
//logging level ...
public class Artifact implements Serializable {
//a predecessor is a artifact that depends on this artifact.
//private @Relationship(type = "DEPEND_ON",direction = Relationship.INCOMING) Artifact predecessor;
@Id
@GeneratedValue
private Long id;
private String groupId;
private String artifactId;
private String version;
private Boolean availability;
//@JsonIgnoreProperty("actor")
@Relationship(type = "DEPEND_ON")//Direction of the relationship. Defaults to OUTGOING.
private Set<Artifact> dependencies = new HashSet<>();
@Relationship(type = "PARENT")
private Parent parent;
@Relationship(type = "HAS_LICENSE")
private Set<License> licenses = new HashSet<>();
@Relationship(type = "ORGANIZATION")
private Organization organization;
public Artifact(String groupId, String artifactId, String version) {
this.groupId = groupId;
this.artifactId = artifactId;
this.version = version;
}
public Artifact(Artifact predecessor, String groupId, String artifactId, String version, HashSet<
毕设20200514 测试远程neo4j连接
最新推荐文章于 2021-07-21 11:17:10 发布