Commit f2646673 authored by Matija Obreza's avatar Matija Obreza
Browse files

@Id generation set to TABLE (Cannot use identity column key generation with...

@Id generation set to TABLE (Cannot use identity column key generation with <union-subclass> mapping)
parent 1b3660c3
...@@ -31,7 +31,7 @@ public class BasicModel implements EntityId, Serializable { ...@@ -31,7 +31,7 @@ public class BasicModel implements EntityId, Serializable {
@JsonView({ JsonViews.Update.class, JsonViews.Protected.class }) @JsonView({ JsonViews.Update.class, JsonViews.Protected.class })
@Id @Id
@GeneratedValue(strategy = GenerationType.AUTO) @GeneratedValue(strategy = GenerationType.TABLE)
@Column(name = "id", unique = true, nullable = false, length = 20) @Column(name = "id", unique = true, nullable = false, length = 20)
private Long id = InMemoryIdGenerator.nextId(); private Long id = InMemoryIdGenerator.nextId();
......
Supports Markdown
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