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

变更实体对象主键ID自增

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