Skip to content

Commit 586c495

Browse files
committed
issues/1588 janusgraph schema
1 parent 8596f5b commit 586c495

File tree

7 files changed

+548
-208
lines changed

7 files changed

+548
-208
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package org.carlspring.strongbox.janusgraph.domain;
2+
3+
import org.neo4j.ogm.annotation.NodeEntity;
4+
5+
/**
6+
* @author Przemyslaw Fusik
7+
*/
8+
@NodeEntity
9+
public class ChangeSet
10+
extends DomainEntity
11+
{
12+
13+
private Integer order;
14+
15+
private String name;
16+
17+
public Integer getOrder()
18+
{
19+
return order;
20+
}
21+
22+
public void setOrder(final Integer order)
23+
{
24+
this.order = order;
25+
}
26+
27+
public String getName()
28+
{
29+
return name;
30+
}
31+
32+
public void setName(final String name)
33+
{
34+
this.name = name;
35+
}
36+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package org.carlspring.strongbox.janusgraph.domain;
2+
3+
import java.util.SortedSet;
4+
5+
import org.neo4j.ogm.annotation.NodeEntity;
6+
import org.neo4j.ogm.annotation.Relationship;
7+
8+
/**
9+
* @author Przemyslaw Fusik
10+
*/
11+
@NodeEntity
12+
public class DatabaseSchema
13+
extends DomainEntity
14+
{
15+
16+
@Relationship(type = "DatabaseSchema_ChangeSet")
17+
private SortedSet<ChangeSet> changeSets;
18+
19+
public SortedSet<ChangeSet> getChangeSets()
20+
{
21+
return changeSets;
22+
}
23+
24+
public void setChangeSets(final SortedSet<ChangeSet> changeSets)
25+
{
26+
this.changeSets = changeSets;
27+
}
28+
}

0 commit comments

Comments
 (0)