mirror of https://github.com/halo-dev/halo
Refactor ThemeSetting entity
parent
1b249de99e
commit
cd82468496
|
@ -23,13 +23,9 @@ import javax.persistence.*;
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class ThemeSetting extends BaseEntity {
|
public class ThemeSetting extends BaseEntity {
|
||||||
|
|
||||||
/**
|
|
||||||
* Theme id as id.
|
|
||||||
*/
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "id", columnDefinition = "varchar(255) not null")
|
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private String id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting key.
|
* Setting key.
|
||||||
|
@ -43,4 +39,10 @@ public class ThemeSetting extends BaseEntity {
|
||||||
@Column(name = "setting_value", columnDefinition = "varchar(10239) not null")
|
@Column(name = "setting_value", columnDefinition = "varchar(10239) not null")
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Theme id.
|
||||||
|
*/
|
||||||
|
@Column(name = "theme_id", columnDefinition = "varchar(255) not null")
|
||||||
|
private String themeId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue