Hibernate JPA @ColumnDefault Example
@ColumnDefault
The @ColumnDefault annotation is used to specify the DEFAULT DDL value to apply when using the automated schema generator.ColumnDefault Identifies the DEFAULT value to apply to the associated column via DDL.
The same behavior can be achieved using the definition attribute of the JPA @Column annotation.
Comments
Post a Comment