@DbComment

提供添加 DDL 表注释列注释 的功能。

表注释

表注释示例。

@DbComment("External customers excluding prospects")
@Entity
@Table(name = "customer")
public class Customer {

列注释

列注释示例。

@Entity
public class Event {

  ...
  @DbComment("Event state set via workflow")
  @Column(nullable = false)
  private State state;