@Table(schema = "feedback",indexes = {@Index(name = "opinion_key",columnList = "opinion",unique = true),@Index(name =
"title_key",columnList = "title")})
A plurality of indices may be added, in the form as shown in FIG.
@org.hibernate.annotations.Table(appliesTo = "feedback",comment="反馈")
Table Name Comment
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Primary key notes, in the form of increment
@Column(name = "opinion", columnDefinition = "varchar(500) COMMENT '反馈意见'")
It specifies the field names and the size of a column
@Table(schema = "feedback",indexes = {@Index(name = "opinion_key",columnList = "opinion",unique = true),@Index(name =
"title_key",columnList = "title")})
@org.hibernate.annotations.Table(appliesTo = "feedback",comment="反馈")
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
@Proxy(lazy = false)
public class FeedBack extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "title")
private String title;
@Column(name = "opinion", columnDefinition = "varchar(500) COMMENT '反馈意见'")
private String opinion;
@Column(name = "contact_information")
private String contactInformation;
@Column(name = "document_id")
private String documentId;
@Column(name = "is_completed")
private Boolean isCompleted;
}