Skip to content
Snippets Groups Projects
Commit 03970909 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

explicitly use sequence as ID auto-incr. + DB update

parent 0372c49f
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ import javax.persistence.*;
public class App {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Integer id;
private String name;
private String description;
......
......@@ -20,7 +20,7 @@ import java.util.Map;
public class Config {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Long id = null;
private String type = null;
......
......@@ -20,7 +20,7 @@ import java.util.List;
public class Filter {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Long id = null;
@ManyToOne
......
......@@ -21,7 +21,7 @@ import java.util.List;
public class Query {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Long id = null;
private String request = null;
......
db @ f06de881
Subproject commit 924d54ccf64c0282aea7ab13ea8c774b020092e3
Subproject commit f06de881c215e1f1b75be2ba49ca3804907d33f9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment