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

变更实体对象主键ID序列

parent 18d12494
...@@ -6,10 +6,7 @@ import cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity; ...@@ -6,10 +6,7 @@ import cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity;
import cn.quantgroup.xyqb.model.Gender; import cn.quantgroup.xyqb.model.Gender;
import cn.quantgroup.xyqb.util.StringUtils; import cn.quantgroup.xyqb.util.StringUtils;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
...@@ -29,6 +26,7 @@ public class CustomerInfoEntity extends PartitionEntity implements Serializable ...@@ -29,6 +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)
private long id; private long id;
@Column(name = "CUSTOMER_ID", nullable = false) @Column(name = "CUSTOMER_ID", nullable = false)
......
...@@ -4,10 +4,7 @@ package cn.quantgroup.xyqb.entity; ...@@ -4,10 +4,7 @@ package cn.quantgroup.xyqb.entity;
import cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity; import cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity;
import cn.quantgroup.xyqb.util.StringUtils; import cn.quantgroup.xyqb.util.StringUtils;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
import java.util.Objects; import java.util.Objects;
...@@ -28,6 +25,7 @@ public class CustomerLoginEntity extends PartitionEntity implements Serializable ...@@ -28,6 +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)
private long id; private long id;
@Column(name = "INSTITUTION_ID", nullable = false, length = 4) @Column(name = "INSTITUTION_ID", nullable = false, length = 4)
......
...@@ -5,10 +5,7 @@ package cn.quantgroup.xyqb.entity; ...@@ -5,10 +5,7 @@ package cn.quantgroup.xyqb.entity;
import cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity; import cn.quantgroup.xyqb.entity.baseEntity.PartitionEntity;
import cn.quantgroup.xyqb.util.StringUtils; import cn.quantgroup.xyqb.util.StringUtils;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDate; import java.time.LocalDate;
import java.util.Objects; import java.util.Objects;
...@@ -30,6 +27,7 @@ public class ProductLoginEntity extends PartitionEntity implements Serializable ...@@ -30,6 +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)
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