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 @Data
@Entity(name = "BasePost") @Entity(name = "BasePost")
@Table(name = "posts", indexes = @Index(columnList = "url")) @Table(name = "posts")
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.INTEGER, columnDefinition = "int default 0") @DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.INTEGER, columnDefinition = "int default 0")
@ToString(callSuper = true) @ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)

View File

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

View File

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