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

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations