Skip to content
Snippets Groups Projects
Commit 69aaccca authored by Jan Tymel's avatar Jan Tymel
Browse files

Change strategy of generated value of entities' ID from IDENTITY to TABLE...

Change strategy of generated value of entities' ID from IDENTITY to TABLE because of the Phases' inheritance
parent b2002697
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ import java.io.Serializable;
public abstract class AbstractPhase implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.TABLE)
private Long id;
private String title;
......
......@@ -13,7 +13,7 @@ import java.io.Serializable;
public class DecisionMatrixRow implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.TABLE)
private Long id;
@Column(name = "order_in_phase", nullable = false)
......
......@@ -26,7 +26,7 @@ import java.util.Set;
public class Question implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.TABLE)
private Long id;
@Enumerated(EnumType.STRING)
......
......@@ -13,7 +13,7 @@ import java.io.Serializable;
public class QuestionChoice implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.TABLE)
private Long id;
private String text;
......
......@@ -18,7 +18,7 @@ import java.util.Set;
public class QuestionPhaseRelation implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.TABLE)
private Long id;
@Column(name = "order_in_questionnaire", nullable = false)
......
......@@ -14,7 +14,7 @@ import java.io.Serializable;
public class Task implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue(strategy = GenerationType.TABLE)
private Long id;
private String title;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment