This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 11 additions & 5 deletions
16
src/main/scala/de/retest/guistatemachine/api/neo4j/ActionTransitionEntity.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/main/scala/de/retest/guistatemachine/api/neo4j/Entity.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 15 additions & 8 deletions
23
src/main/scala/de/retest/guistatemachine/api/neo4j/SutStateEntity.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
package de.retest.guistatemachine.api.neo4j | ||
|
||
import de.retest.guistatemachine.api.SutStateIdentifier | ||
import org.neo4j.ogm.annotation.{Relationship, _} | ||
|
||
import scala.collection.mutable | ||
import org.neo4j.ogm.annotation._ | ||
|
||
@NodeEntity | ||
class SutStateEntity( | ||
@Id | ||
//@Index(unique = true) | ||
val id: java.lang.String) { | ||
@Index(unique = true) | ||
@Property | ||
var hash: java.lang.String) { | ||
|
||
def this(sutStateIdentifier: SutStateIdentifier) = this(sutStateIdentifier.hash) | ||
def this() = this("") | ||
|
||
@Relationship(`type` = "ACTIONS", direction = Relationship.INCOMING) val incomingActionTransitions = mutable.HashSet[ActionTransitionEntity]() | ||
@Relationship(`type` = "ACTIONS", direction = Relationship.OUTGOING) val outgoingActionTransitions = mutable.HashSet[ActionTransitionEntity]() | ||
@Id | ||
@GeneratedValue | ||
var id: java.lang.Long = 0L | ||
|
||
@Relationship(`type` = "ACTIONS", direction = Relationship.UNDIRECTED) var actionTransitions = new java.util.LinkedList[ActionTransitionEntity]() | ||
|
||
// TODO #19 Which container types? | ||
/* | ||
@Relationship(`type` = "ACTIONS", direction = Relationship.INCOMING) var incomingActionTransitions = new java.util.LinkedList[ActionTransitionEntity]() | ||
@Relationship(`type` = "ACTIONS", direction = Relationship.OUTGOING) var outgoingActionTransitions = new java.util.LinkedList[ActionTransitionEntity]() | ||
*/ | ||
} |