Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Never set the ID manually #19
Browse files Browse the repository at this point in the history
This fixes persisting entities.
  • Loading branch information
tdauth committed Apr 10, 2019
1 parent 6c7a0f5 commit 977fd68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ActionTransitionEntity(s: SutStateEntity, e: SutStateEntity, a: String) {

@Id
@GeneratedValue
var id: java.lang.Long = 0L
var id: java.lang.Long = null

@Index
@StartNode var start: SutStateEntity = s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SutStateEntity(

@Id
@GeneratedValue
var id: java.lang.Long = 0L
var id: java.lang.Long = null

@Relationship(`type` = "ACTIONS", direction = Relationship.UNDIRECTED) var actionTransitions = new java.util.LinkedList[ActionTransitionEntity]()

Expand Down

0 comments on commit 977fd68

Please sign in to comment.