Commit 107dcf51 authored by Maxym Borodenko's avatar Maxym Borodenko

Don't use GenerationType.AUTO

parent 73f5ecb7
......@@ -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;
......
......@@ -37,7 +37,7 @@ public class BasicModel extends EmptyModel {
/** 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 = 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