修改了各实体类的信息,修改了主键的配置
This commit is contained in:
parent
95011e6d39
commit
2301c42f67
@ -15,7 +15,7 @@ public class BankCardEntity {
|
|||||||
*/
|
*/
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "bank_card_seq_gen")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "bank_card_seq_gen")
|
||||||
@SequenceGenerator(name = "bank_card_seq_gen", sequenceName = "bank_card_id_seq")
|
@SequenceGenerator(name = "bank_card_seq_gen", sequenceName = "bank_card_id_seq",allocationSize = 1)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +15,7 @@ public class BusinessEntity {
|
|||||||
*/
|
*/
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "business_seq_gen")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "business_seq_gen")
|
||||||
@SequenceGenerator(name = "business_seq_gen", sequenceName = "business_id_seq")
|
@SequenceGenerator(name = "business_seq_gen", sequenceName = "business_id_seq",allocationSize = 1)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +17,7 @@ public class FileDocumentEntity implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "file_document_seq_gen")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "file_document_seq_gen")
|
||||||
@SequenceGenerator(name = "file_document_seq_gen", sequenceName = "file_document_seq")
|
@SequenceGenerator(name = "file_document_seq_gen", sequenceName = "file_document_seq",allocationSize = 1)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
@Column(length = 64, nullable = false, columnDefinition = "varchar(64)")
|
@Column(length = 64, nullable = false, columnDefinition = "varchar(64)")
|
||||||
|
@ -14,7 +14,7 @@ public class ProductContentPhotoEntity {
|
|||||||
*/
|
*/
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "product_content_photo_seq_gen")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "product_content_photo_seq_gen")
|
||||||
@SequenceGenerator(name = "product_content_photo_seq_gen", sequenceName = "product_content_photo_id_seq")
|
@SequenceGenerator(name = "product_content_photo_seq_gen", sequenceName = "product_content_photo_id_seq",allocationSize = 1)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@ public class ProductCoverEntity {
|
|||||||
*/
|
*/
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "product_cover_seq_gen")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "product_cover_seq_gen")
|
||||||
@SequenceGenerator(name = "product_cover_seq_gen", sequenceName = "product_cover_id_seq")
|
@SequenceGenerator(name = "product_cover_seq_gen", sequenceName = "product_cover_id_seq",allocationSize = 1)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +15,7 @@ public class ProductEntity {
|
|||||||
*/
|
*/
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "product_seq_gen")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "product_seq_gen")
|
||||||
@SequenceGenerator(name = "product_seq_gen", sequenceName = "product_id_seq")
|
@SequenceGenerator(name = "product_seq_gen", sequenceName = "product_id_seq",allocationSize = 1)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,7 +19,7 @@ public class SysUserEntity implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sys_user_seq_gen")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sys_user_seq_gen")
|
||||||
@SequenceGenerator(name = "sys_user_seq_gen", sequenceName = "sys_user_id_seq")
|
@SequenceGenerator(name = "sys_user_seq_gen", sequenceName = "sys_user_id_seq",allocationSize = 1)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user