Remove database index support #178

pull/180/head
johnniang 2019-06-04 16:33:56 +08:00
parent 7d833bad0f
commit cb2e38fea9
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ import java.util.Date;
*/
@Data
@Entity(name = "BasePost")
@Table(name = "posts", indexes = @Index(columnList = "url"))
@Table(name = "posts")
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.INTEGER, columnDefinition = "int default 0")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)

View File

@ -14,7 +14,7 @@ import javax.persistence.*;
*/
@Data
@Entity
@Table(name = "tags", indexes = @Index(columnList = "slug_name"))
@Table(name = "tags")
@ToString
@EqualsAndHashCode(callSuper = true)
public class Tag extends BaseEntity {

View File

@ -14,7 +14,7 @@ import javax.persistence.*;
*/
@Data
@Entity
@Table(name = "theme_settings", indexes = {@Index(columnList = "setting_key")})
@Table(name = "theme_settings")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class ThemeSetting extends BaseEntity {