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

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept