Commit bde9923a authored by guangjing.gao's avatar guangjing.gao

变更实体对象主键ID自增

parent 43253560
......@@ -26,7 +26,7 @@ public class CustomerInfoEntity extends PartitionEntity implements Serializable
@Id
@Column(name = "ID", nullable = false)
@GeneratedValue(strategy = GenerationType.SEQUENCE)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@Column(name = "CUSTOMER_ID", nullable = false)
......
......@@ -25,7 +25,7 @@ public class CustomerLoginEntity extends PartitionEntity implements Serializable
@Id
@Column(name = "ID", nullable = false)
@GeneratedValue(strategy = GenerationType.SEQUENCE)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@Column(name = "INSTITUTION_ID", nullable = false, length = 4)
......
......@@ -27,7 +27,7 @@ public class ProductLoginEntity extends PartitionEntity implements Serializable
@Id
@Column(name = "ID", nullable = false)
@GeneratedValue(strategy = GenerationType.SEQUENCE)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@Column(name = "CUSTOMER_ID", nullable = false)
......
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