Refactor ThemeSetting entity

pull/146/head
johnniang 2019-04-09 20:01:24 +08:00
parent 1b249de99e
commit cd82468496
1 changed files with 7 additions and 5 deletions

View File

@ -23,13 +23,9 @@ import javax.persistence.*;
@EqualsAndHashCode(callSuper = true)
public class ThemeSetting extends BaseEntity {
/**
* Theme id as id.
*/
@Id
@Column(name = "id", columnDefinition = "varchar(255) not null")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private String id;
private Integer id;
/**
* Setting key.
@ -43,4 +39,10 @@ public class ThemeSetting extends BaseEntity {
@Column(name = "setting_value", columnDefinition = "varchar(10239) not null")
private String value;
/**
* Theme id.
*/
@Column(name = "theme_id", columnDefinition = "varchar(255) not null")
private String themeId;
}