Commit 1c924ed7 authored by Maxym Borodenko's avatar Maxym Borodenko

Merge branch 'for-genesys-server-511' into 'master'

Don't use GenerationType.AUTO

See merge request genesys-pgr/application-blocks!70
parents 1805b003 107dcf51
......@@ -54,7 +54,7 @@ public class AuditLog implements Serializable {
/** The id. */
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(nullable = false, length = 20)
protected Long id;
......
......@@ -39,7 +39,7 @@ public class BasicModel extends EmptyModel implements Persistable<Long> {
/** The id. */
@JsonView({ JsonViews.Minimal.class, JsonViews.Update.class, JsonViews.Protected.class })
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", unique = true, nullable = false)
private Long id = null; // InMemoryIdGenerator.nextId();
......
......@@ -41,7 +41,7 @@ public class ClassPK implements Serializable {
/** The id. */
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false, length = 20)
@JsonView(JsonViews.Internal.class)
protected Long id;
......
Markdown is supported
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