Skip to content
Snippets Groups Projects
Unverified Commit f6b265cb authored by Martin Weise's avatar Martin Weise
Browse files

Fixed the ID Problem

parent cb42133a
No related branches found
No related tags found
4 merge requests!129New module for citation as they occur multiple,!121Modified logging, modified logging level, modified flasgger endpoint,!113Resolve "Bugs related with Query Service",!109Resolve "Use MariaDB for metadata database"
Showing
with 35 additions and 16 deletions
......@@ -31,7 +31,8 @@ public class Container {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "containers-sequence")
@GenericGenerator(name = "containers-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -2,6 +2,7 @@ package at.tuwien.entities.container.image;
import at.tuwien.entities.container.Container;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
......@@ -23,7 +24,8 @@ public class ContainerImage {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "images-sequence")
@GenericGenerator(name = "images-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
public Long id;
......
......@@ -2,6 +2,7 @@ package at.tuwien.entities.container.image;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
......@@ -21,7 +22,8 @@ public class ContainerImageDate {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "dates-sequence")
@GenericGenerator(name = "dates-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
package at.tuwien.entities.container.image;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
......@@ -22,7 +23,8 @@ public class ContainerImageEnvironmentItem {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "environments-sequence")
@GenericGenerator(name = "environments-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
public Long id;
......
......@@ -32,7 +32,8 @@ public class Database {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "databases-sequence")
@GenericGenerator(name = "databases-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -23,7 +23,8 @@ public class View {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "views-sequence")
@GenericGenerator(name = "views-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -31,7 +31,8 @@ public class Table {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "tables-sequence")
@GenericGenerator(name = "tables-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -32,7 +32,8 @@ public class TableColumn implements Comparable<TableColumn> {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "columns-sequence")
@GenericGenerator(name = "columns-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -24,7 +24,8 @@ public class ColumnConcept implements Serializable {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "columns-concepts-sequence")
@GenericGenerator(name = "columns-concepts-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long cid;
......
......@@ -23,7 +23,8 @@ public class Concept {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "concepts-sequence")
@GenericGenerator(name = "concepts-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -23,7 +23,8 @@ public class Creator {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "creators-sequence")
@GenericGenerator(name = "creatos-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -31,7 +31,8 @@ public class Identifier {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "identifiers-sequence")
@GenericGenerator(name = "identifiers-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -28,7 +28,8 @@ public class RelatedIdentifier {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "related-identifiers-sequence")
@GenericGenerator(name = "related-identifiers-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -23,7 +23,8 @@ public class TimeSecret {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "time-secrets-sequence")
@GenericGenerator(name = "time-secrets-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -23,7 +23,8 @@ public class Token {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "tokens-sequence")
@GenericGenerator(name = "tokens-sequence", strategy = "increment")
@Column(updatable = false, nullable = false)
private Long id;
......
......@@ -25,7 +25,8 @@ public class User {
@Id
@EqualsAndHashCode.Include
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(generator = "users-sequence")
@GenericGenerator(name = "users-sequence", strategy = "increment")
@Column(name = "userid", updatable = false, nullable = false)
private Long id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment