修改了各实体类的信息,修改了主键的配置

This commit is contained in:
XinYi Song 2021-12-21 17:25:18 +08:00
parent 95011e6d39
commit 2301c42f67
7 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ public class BankCardEntity {
*/
@Id
@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;
/**

View File

@ -15,7 +15,7 @@ public class BusinessEntity {
*/
@Id
@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;
/**

View File

@ -17,7 +17,7 @@ public class FileDocumentEntity implements Serializable {
*/
@Id
@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;
@Column(length = 64, nullable = false, columnDefinition = "varchar(64)")

View File

@ -14,7 +14,7 @@ public class ProductContentPhotoEntity {
*/
@Id
@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;
/**

View File

@ -14,7 +14,7 @@ public class ProductCoverEntity {
*/
@Id
@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;
/**

View File

@ -15,7 +15,7 @@ public class ProductEntity {
*/
@Id
@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;
/**

View File

@ -19,7 +19,7 @@ public class SysUserEntity implements Serializable {
*/
@Id
@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;
/**