Custom @Column JPA Annotations, how to?
问题 Been trying hard to search for a solution to create some Custom JPA Annotations to replace repetitive fields when declaring Entity POJOs. Any help? Here what I am trying to achieve: //@Column(name = "is_enabled", nullable = false, columnDefinition = "tinyint(1) DEFAULT 1") @ColumnBooleanNotNullDefaultOne private Boolean isEnabled; or //@Column(name = "created", nullable = false, updatable = false, insertable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") @ColumnTimestamp